Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to see what software is installed by linux

Shulou Source: shulou.com Published: 2022-05-31 10:54:03 10月04日 Update

Today, I would like to share with you the relevant knowledge of how to check which software is installed by linux. The content is detailed and the logic is clear. I believe most people still know too much about this, so share this article for your reference. I hope you can get something after reading this article.

Linux to see which software is installed: 1, use the "rpm-qa" command to view the software installed by the rpm method; 2, use the "dpkg-l" command to view the software installed by the deb method; 3, use the "yum list installed" command to view the software installed by the yum method.

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

How does linux see what software is installed?

1. The rpm package is installed, which can be seen with rpm-qa

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

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

2. If installed in deb package, you can see it with dpkg-l.

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

[root@hexuweb102~] dpkg-l | grepruby

3. If installed by yum method, you can find it with yum list installed.

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

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

If it is compiled and installed in the source package itself, such as .tar.gz or tar.bz2, it only depends on whether the executable file exists.

Rpm yum is the package management command of Redhat linux, and dpkg is the package management command of debian series.

Examples are as follows:

These are all the contents of the article "how to check which software is installed by linux". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Tags: Software commands methods knowledge articles software packages content names management different large most that is forms tutorials files more source code environment computer Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Docker Apple Redmi Shulou Information