Home >Operation and Maintenance >Linux Operation and Maintenance >How to check which software is installed in Linux
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.
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
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:
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!