yum find out path where is package installed to on CentOS/RHEL

For example, to find the path for the package httpd, you can run the following command:

yum provides '*/httpd'

The output will list the packages that provide the specified file, including the full path to the file and the package name:

httpd-2.4.6-67.el7.centos.x86_64 : Apache HTTP Server
Repo : installed
Matched from:
Filename : /usr/sbin/httpd

To find the installation path of a package on CentOS/RHEL using yum, use the following command:

$ yum provides <package-name> | grep "^/\|^config"

Replace <package-name> with the name of the package you want to find the installation path for. The output will show the file paths for the installed package and its configurations.

(https://www.whitestallion.com/)

Leave a Comment