LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Find Installed Location of RPM Package in Unix (https://www.linuxquestions.org/questions/linux-newbie-8/find-installed-location-of-rpm-package-in-unix-798000/)

suman5u 03-26-2010 04:23 AM

Find Installed Location of RPM Package in Unix
 
Using rpm -qa | grep -i <pkgname> gives if a package is installed or not.

But, I would like to find out where a package is already installed i.e the location where a particular package is installed say /opt/<pkg>

Please help me on this...!

Many thanks in advance...

evo2 03-26-2010 04:27 AM

To list the files in a package:
Code:

rpm -ql <pkgname>
Evo2.

colucix 03-26-2010 04:28 AM

Welcome to LinuxQuestions!

The question should be: where a package installed stuff. The default locations are /usr/bin for binary executables, /usr/lib for shared objects on a 32-bit OS, /usr/lib64 on a 64-bit OS, /usr/share/doc for documentation files and so on. You can find out using
Code:

rpm -ql <package>


All times are GMT -5. The time now is 07:22 AM.