Home > Operation and Maintenance > CentOS > How to check whether the specified software has been installed in centos system

How to check whether the specified software has been installed in centos system

王林
Release: 2020-03-21 11:11:45
Original
3303 people have browsed it

How to check whether the specified software has been installed in centos system

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 the following command to check.

rpm -qa | grep "软件或者包的名字"
Copy after login

2. The deb package is installed and can be seen using dpkg -l. If you are looking for a specific software package, use the following command to view it.

dpkg -l | grep "软件或者包的名字"
Copy after login

(Recommended tutorial: centos usage tutorial)

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
Copy after login

If there is no return value, it means it is not installed.

4. If the source code package is compiled and installed by yourself, such as in the form of .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. To view all packages installed by pip, the command is as follows:

pip list
Copy after login

Recommended related video tutorials: linux video tutorial

The above is the detailed content of How to check whether the specified software has been installed in centos system. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template