OSETC TECH

How to Find Yum Package Installation Location in Linux

This post will guide you how to find yum package installation location in CentOS/RHEL Linux. How do I find installed location of a RPM package in Linux. How to find the installation path for a package under Linux.

Find Yum Package Installation Location


After installed a package using yum tool, You may be want to know which directory can I find the packages installed using yum. If you want to list all files installed by yum tool, you can use the rpm command with -ql option to check.

For example, you install a package called wget, and you can use the following command to list all files of package wget. Type:

# yum install wget

# rpm -ql wget

Outputs:

[root@os_x8664 ~]# yum install wget -y
Loaded plugins: rhnplugin, ulninfo
This system is receiving updates from ULN.
Resolving Dependencies
--> Running transaction check
---> Package wget.x86_64 0:1.14-13.el7 will be updated
---> Package wget.x86_64 0:1.14-18.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================================================
Updating:
wget x86_64 1.14-18.el7 ol7_x86_64_latest 545 k

Transaction Summary
==========================================================================================================================================================
Upgrade 1 Package

Total download size: 545 k
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
wget-1.14-18.el7.x86_64.rpm | 545 kB 00:00:00
Running transaction check
Running transaction test
y
Transaction test succeeded
Running transaction
Updating : wget-1.14-18.el7.x86_64 1/2
Cleanup : wget-1.14-13.el7.x86_64 2/2
Verifying : wget-1.14-18.el7.x86_64 1/2
Verifying : wget-1.14-13.el7.x86_64 2/2

Updated:
wget.x86_64 0:1.14-18.el7

Complete!

[root@os_x8664 ~]# rpm -ql wget
/etc/wgetrc
/usr/bin/wget
/usr/share/doc/wget-1.14
/usr/share/doc/wget-1.14/AUTHORS
/usr/share/doc/wget-1.14/COPYING
/usr/share/doc/wget-1.14/MAILING-LIST
/usr/share/doc/wget-1.14/NEWS
/usr/share/doc/wget-1.14/README
/usr/share/doc/wget-1.14/sample.wgetrc
/usr/share/info/wget.info.gz
/usr/share/locale/be/LC_MESSAGES/wget.mo