Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to see what software is installed by linux

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report