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

ht‮t‬ps://www.lautturi.com
yum find out path where is package installed to on CentOS/RHEL

To find out the path where a package is installed to on a CentOS or RHEL system using the "yum" package manager, you can use the following command:

yum provides "*bin/package-name"

Replace "package-name" with the name of the package you want to find the installation path for.

For example, to find the installation path for the "openssh-server" package, you can use the following command:

yum provides "*bin/openssh-server"

This will list all of the files provided by the "openssh-server" package, along with their installation path. The installation path is typically located under the "/" directory.

Alternatively, you can use the "rpm" command to query the installed package and find the installation path. To do this, use the following command:

rpm -ql package-name

Replace "package-name" with the name of the package you want to find the installation path for.

For example, to find the installation path for the "openssh-server" package, you can use the following command:

rpm -ql openssh-server

This will list all of the files installed by the "openssh-server" package, along with their installation path.

Keep in mind that these commands will only work for packages that are installed on the system using "yum" or "rpm". If the package was installed using a different method, you may need to use a different method to find the installation path.

Created Time:2017-10-30 14:27:36  Author:lautturi