Home  >  Article  >  Operation and Maintenance  >  How to check whether a certain software is installed in Linux

How to check whether a certain software is installed in Linux

王林
王林Original
2020-05-14 11:46:195557browse

How to check whether a certain software is installed in Linux

Linux has many ways to install software. There are several ways to check whether a certain software is installed:

1. Software installed in rpm package

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

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

2. Software installed with deb package

Use dpkg -l | grep "Software or package name" Name" command to view

[root@hexuweb102~]dpkg-l|grepruby

3. Software installed by yum method

You can use yum list installed | grep "Software name or package name" command to view

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

Recommended tutorial: linux tutorial

The above is the detailed content of How to check whether a certain software is installed in Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn