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


[[email protected]_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
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
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

wget.x86_64 0:1.14-18.el7


[[email protected]_x8664 ~]# rpm -ql wget


You might also like:


back to top