yum rpm query installed software info

1: If the package is installed by yum or rpm
[root@localhost yum.repos.d]# rpm -qa //Find all the packages in the system and find the corresponding file name

[root@localhost 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 code installation method is through the rpm command Unable to find out, if you are sure that this software has been opened, you can
find out the directory where the executable file is located by [root@localhost yum.repos.d]# ps -aux
2.2 Usually after installing the package, we will Add him to the service, you can go to /etc/rc.d/ to find the corresponding file, and then confirm the relevant information.

The last and most stupid way is to use the find command
find / -name *filename*

3. List all installed package information
Command : yum info installed

yum info installed |grep xxxx

To remove software, yum detects on your system the software specified to be removed, and any software that depends on it. A transaction to remove software removes that software and all software that depends on it.

To remove the tsclient software, use the command: yum remove tsclient



To remove all software in the software group MySQL Database, use the command: yum groupremove "MySQL Database"

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326441115&siteId=291194637