Home >Operation and Maintenance >Linux Operation and Maintenance >How to check which software is installed in Linux

How to check which software is installed in Linux

WBOY
WBOYOriginal
2022-04-06 16:30:3240409browse

How to check which software is installed on Linux: 1. Use the "rpm -qa" command to check the software installed by the rpm method; 2. Use the "dpkg -l" command to check the software installed by the deb method; 3. Use "yum list installed" command to view the software installed by yum method.

How to check which software is installed in Linux

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How to check what software is installed in Linux

1. If the rpm package is installed, you can use rpm -qa to see it

If you want to find a certain software To check whether the package is installed, use rpm -qa | grep "the name of the software or package".

[root@hexuweb102 ~] rpm -qa | grep ruby

2. If installed with deb package, you can use dpkg -l to see

If you are looking for a specified software package, use dpkg -l | grep "software Or the name of the package";

[root@hexuweb102~]dpkg-l|grepruby

3. If installed by yum method, you can use yum list installed to search

If you are looking for a specified package, add | grep " after the command. Software name or package name";

[root@hexuweb102 ~] yum list installed | grep ruby

If you compile and install the source code package yourself, such as .tar.gz or tar.bz2 format, this can only check whether the executable file exists,

Among them, rpm yum is the software package management command of Redhat series linux, and dpkg is the software package management command of debian series.

Examples are as follows:

How to check which software is installed in Linux

Related Recommended: "Linux Video Tutorial"

The above is the detailed content of How to check which software is installed in Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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