Click to See Complete Forum and Search --> : rpm question on installing and locating the files


jay_dilworth
07-21-2003, 01:15 PM
Ok, im having a little trouble here, this is my second day with redhat linux 8.0, well, my second linux day ever.

I am trying to install an rpm file, for GTK fileshare program. I have tried both:

rpm -ivh filename
and
rpm -Uvh filename

and both seem to install perfectly, if this is the case, where can I find the installed program? As in the equivalent to C:\program files\ in micro$oft window$?

BUT, and there is a BUT, when i tried:

rpm -V filename

i got told the package isnt installed, so I went back and tried the first 2 commands, both saying the package was already installed. Can anyone help?

Thanks a lot.

jaYDee

ciphrix
07-21-2003, 01:27 PM
You can try "locate filename" and see what that returns. You also might want to look in /usr/local/bin to see if it installed there.

mdwatts
07-21-2003, 01:40 PM
http://www.rpm.org/max-rpm/

Only use the filename and not the complete package name when you installed.

i.e.

rpm -Uvh samba-#.#.#.i386.rpm

rpm -V samba

rpm -ql samba (will list all the files installed by the rpm package)

kshim5
07-21-2003, 01:47 PM
slocate packagename | grep exactpackagename.rpm

or

rpm -q packagename.rpm to query the package

serz
07-21-2003, 04:43 PM
It would be better to "rpm -qa | grep package"

If you're going to locate it, try running "updatedb" before so it updates the slocate db.

pvd212
07-22-2003, 10:30 AM
when a rpm is installed um most case the file is send to /user/bin
what i would do is go to your shell terminal and type the command
ls /usr/bin
what it will do is list all the fils in your bin look for the file

phlipant
07-22-2003, 10:49 AM
it is notable that rpm -qa package will only find one package as in

#rpm -qa samba
samba-2.2.7a-8.9.0

or

rpm -qa samba-common
samba-common-2.2.7a-8.9.0

but rpm -qa | grep package will find related packages. as in

# rpm -qa | grep samba
samba-client-2.2.7a-8.9.0
samba-2.2.7a-8.9.0
samba-swat-2.2.7a-8.9.0
samba-common-2.2.7a-8.9.0