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

2025-03-09 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 points about how to check whether a 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. Let's take a look.

View method: 1, use "rpm-qa | grep software name" statement, you can view rpm software; 2, use "yum list installed | grep software name" statement, you can view yum method software; 3, use "dpkg-l | grep software name" statement.

The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.

1. Software installed in rpm

Use rpm-qa | grep software or package name command to view

Check whether java is installed as follows. Only the openjdk installed by rpm is queried, but not the custom jdk1.8tar package installation.

2. Software installed by yum method

You can use yum list installed | grep software name or package name command to view it.

For example: check whether ruby is installed

Yum list installed | grep ruby

3. Software installed with deb package

Use dpkg-l | grep software or package name command to view

For example: check whether ruby is installed

Dpkg-l | grep ruby

Extended knowledge: view the location of the installation of running software

If the installed software is already running, you can check its status and location by using the ps command

Ps-aux | name of the grep program. For example, check the location where hadoop is installed.

These are all the contents of the article "how to check whether a 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