Home >Operation and Maintenance >Linux 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
2022-04-14 17:39:498456browse

Viewing method: 1. Use the "rpm -qa | grep software name" statement to view software in rpm mode; 2. Use the "yum list installed | grep software name" statement to view software in yum method ;3. Use the "dpkg -l | grep software name" statement.

How to check whether a certain software is installed in Linux

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

During development, sometimes you need to check whether a certain software is installed, but there are many ways to install software in Linux, such as installing from yum source and installing rpm packages. This article will introduce you to several checking methods:

1. Software installed in rpm mode

Use the 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. The custom jdk1.8tar package installation is not found.

How to check whether a certain software is installed in Linux

##2. Installation by yum method The software

can be viewed using the

yum list installed | grep software name or package name command

For example: check whether ruby ​​is installed

yum list installed | grep ruby

3. Software installed with deb package

Use

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

For example: check whether ruby Installation

dpkg -l | grep ruby

Extended knowledge: View the location where the running software is installed

If the installed software is already running, you can use the ps command to view its status and other Installation location

ps -aux | grep program name, for example, check the location of hadoop installation.

How to check whether a certain software is installed in Linux

Related recommendations: "

Linux Video 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
Previous article:What is samba in linuxNext article:What is samba in linux