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 if the software is installed by linux

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Today, the editor will bring you an article on how to check whether the software is installed by linux. The editor thinks it's pretty good, so I'll share it for you as a reference. Let's follow the editor and have a look.

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 perl

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"

Dpkg-l | grep perl-bash: dpkg: command not found

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".

Yum list installed | grep perl

The above is the specific operation of linux how to check whether the software is installed, the code is detailed and clear, if you encounter this problem in your daily work, I hope you can solve the problem through this article. If you want to know more about it, 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