Taking php-mysql in Redhat\centos as an example
1: If the package is installed by Yum or rpm
[[email protected] yum.repos.d]# RPM-QA //Find out all packages of the system and find the corresponding file name
[Email protected] yum.repos.d]# RPM-QL php-mysql-5.4.16-23.el7_0.3.x86_64
/etc/php.d/mysql.ini
/etc/php.d/mysqli.ini
/etc/php.d/pdo_mysql.ini
/usr/lib64/php/modules/mysql.so
/usr/lib64/php/modules/mysqli.so
/usr/lib64/php/modules/pdo_mysql.so
2: If the source code is compiled and installed
2.1 Source installation mode through the RPM command is not available, if you are sure that the software is turned on, you can go through
[[email protected] yum.repos.d]# Ps-aux Find the directory where the executable file is located
2.2 Usually after the package is installed, we will add him to the service, you can go to/etc/rc.d/to find the appropriate documents, and then confirm the relevant information.
The last and most stupid way is to use the Find command
Find/-name * File name *
How do I see if a software is installed under "Go" Linux? Where is the installation path?