1. If the rpm package is installed, you can use rpm -qa to see it. If you want to find out whether a certain software package is installed, use rpm -qa | grep "the name of the software or package".
2. The deb package is installed and can be seen using dpkg -l. If you are looking for a specified software package, use dpkg -l | grep "the name of the software or package";
3. If it is installed by yum method, you can use yum list installed to find it. If you are looking for a specified package, add after the command | grep "Software name or package name";
For example:
yum list installed openssl |grep openssl openssl.x86_64 1:1.0.2k-8.el7 @anaconda
If there is no return value, it means it is not installed.
4. If you compile and install the source code package yourself, such as .tar.gz or tar.bz2, you can only check whether the executable file exists.
Neither of the above two methods can see the package installed in this source code form. If installed as the root user, the executable programs are usually in the /sbin:/usr/bin directory.
5. All packages installed by pip:
pip list
Recommended tutorial: centos tutorial
The above is the detailed content of How to check whether a certain software is installed in centos. For more information, please follow other related articles on the PHP Chinese website!