How to check whether a certain software is installed in centos

王林
Release: 2020-05-23 13:56:44
Original
2823 people have browsed it

How to check whether a certain software is installed in centos

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

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

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!

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