Web Hosting Talk







View Full Version : Rpm ....


Cael
09-03-2001, 12:16 PM
I try to install this rpm file from http://rpmfind.net//linux/RPM/redhat/6.2/i386/unzip-5.40-2.i386.html

I ran this command:
rpm -Uvh ftp://ftp.redhat.com/pub/redhat/linux/6.2/en/os/i386/SRPMS/unzip-5.40-2.src.rpm

The output is just :
root@servus [/scripts]# rpm -Uvh ftp://ftp.redhat.com/pub/redhat/linux/6.2/en/os/i386/SRPMS/unzip-5.40-2.src.rpm
unzip ##################################################

It seems like it has been installed successfully. But I can't find the rpm, or use it.

Anyone has any idea?

BTW, what's the command to list out all rpm files. I have missed it somewhere deep inside my brain. Can't remember anymore.

Is it rpm -l , but it shows :

rpm {--help}
rpm {--version}
rpm {--initdb} [--dbpath <dir>]
rpm {--install -i} [-v] [--hash -h] [--percent] [--force] [--test]
[--replacepkgs] [--replacefiles] [--root <dir>] ...

Which seems different from the results from a Raq3.

RutRow
09-03-2001, 01:11 PM
It seems like it has been installed successfully. But I can't find the rpm, or use it.

You downloaded and installed the src rpm. You probably want the binary release, otherwise you will have to complile the one you currently downloaded.

BTW, what's the command to list out all rpm files.

$ rpm -q -a

Palm
09-03-2001, 01:43 PM
I think you need to rebuild the source file and then you can install it. The rebuilding option is in the man file.

Cael
09-04-2001, 06:06 AM
Hmmm... I checked with rpm -q -a , didn't see that rpm. So I bet it didn't actually install to my server itself.

Is there any replacement for this rpm? I would like to enable "unzip" on my server.

Jm4n
09-04-2001, 06:45 AM
I've never seen a Redhat installation that didn't support unzip -- 'gunzip' will unzip gzipped-files, and 'unzip' should do standard zip files.

If you actually don't have the zip/unzip utilities installed -- the RPM installation should have done everything it needs to have done automatically in most cases.

Have you tried doing a 'locate' for the unzip binary? What is your path like (eg, do you have all the standard binary locations in your path)?

You should be able to just type 'unzip'. If this doesn't work, try:

locate unzip

Most likely it will be in /bin or /usr/bin, both of which should be in your PATH...

Finally, if you do need help with the 'rpm' command itself, I'd recommend typing:

rpm --help

Or:

man rpm

There are differences in the arguments between rpm 3.x and 4.x, so checking with your particular installation is the best place to obtain help on using it.

JTY
09-04-2001, 11:38 AM
Well you can try using that same source rpm but, instead of:

rpm -Uvh

use

rpm --rebuild

Cael
09-04-2001, 11:41 AM
I did that. And no results were found.

priyadi
09-04-2001, 11:11 PM
if you install an src.rpm, it won't show up on rpm -q... instead it will install the sources in /usr/src/redhat...

as an another user pointed out, you probably want a binary rpm... find a package that ends in i386.rpm, not src.rpm...