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 check whether a software package has been installed in Linux

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

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to check whether a software package has been installed in Linux, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!

There are many ways to install software in Linux system, so there is no general method to find out whether a certain software has been installed, but here are some types for your reference:

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

Rpm-qa | grep ruby

2. If installed with 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"

Dpkg-l | grep ruby

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 the command to | grep "software name or package name".

Yum list installed | grep ruby

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

Neither of the above methods can see the package installed in this source form. If installed as a root user, the executable is usually in the / sbin:/usr/bin directory.

There are other ways, please state clearly.

Here are some additions from other netizens

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

2. Install with deb package, which can be seen with dpkg-l. If you are looking for the specified package, use dpkg-l | grep "the name of the software or package"

3. If installed by yum method, you can use yum list installed to find it. If you are looking for a specified package, use yum list installed | grep "software name or package name".

The above is all the contents of the article "how to check whether a software package has been installed in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow 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