First execute the following command to view the names of all installed software.
rpm -qa
Then execute
rpm -ql 软件名称
to display the installation path of the software.
Example:
[root@localhost ~]# rpm -ql tree /usr/bin/tree /usr/share/doc/tree-1.6.0 /usr/share/doc/tree-1.6.0/LICENSE /usr/share/doc/tree-1.6.0/README /usr/share/man/man1/tree.1.gz
Recommended tutorial:centos tutorial
The above is the detailed content of How to check where the software installed in centos is. For more information, please follow other related articles on the PHP Chinese website!