LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rpm install location ...how to tell ? (https://www.linuxquestions.org/questions/linux-software-2/rpm-install-location-how-to-tell-62969/)

dynamo|x 06-01-2003 02:13 AM

rpm install location ...how to tell ?
 
Hello guys. I have a newbish question. When i am about to install an rpm...how can i tell where and what will be installed. Basically how you can see default install location in windows, i want to see that in an rpm file. Ive tried doing: rpm -l dell.rpm ...that did not work. I am using RH9.

Thank you

MasterC 06-01-2003 02:29 AM

Normally you wouldn't care about such info, normally the application/files will be installed into the necessary places and, if there is an executable, it will normally be placed in your path. However, for curiosities sake, or just for a custom setup, you can use:
rpm -l (list files)
rpm -l --dump (to dump the files for examination).
rpm --test (test for conflicts)

HTH

Cool

dynamo|x 06-01-2003 08:31 AM

i appreciate your help. I must be doing something wrong. When i type: rpm -l dell.rpm ....i get info on usage etc etc. My syntax must be wrong. Would you give me an example.

Thank you

acid_kewpie 06-01-2003 08:54 AM

you are using the FILE name, not the PACKAGE name... use blah instead of blah-1.2.i686.rpm etc...

dynamo|x 06-01-2003 01:09 PM

Hmm..i tried that as well...still getting this:

[root@linuxrh9 dell]# rpm -l dell-2-2
RPM version 4.2
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL

Usage: rpm [-a|--all] [-f|--file] [-g|--group] [-p|--package] [--specfile]
[--whatrequires] [--whatprovides] [-c|--configfiles] [-d|--docfiles]
[--dump] [-l|--list] [--queryformat=QUERYFORMAT] [-s|--state]
..............................................
and more one usage. I got the rpm name by try installing it again..that's when it told me that dell-2-2 was already installed. very strange

Thanks

david_ross 06-01-2003 01:16 PM

Try:
rpm -ql dell-2-2

The q specifies it as a query.

dynamo|x 06-01-2003 05:13 PM

Alright. that was it ...thank you very much


All times are GMT -5. The time now is 06:43 PM.