How to check whether a certain software is installed in Linux

青灯夜游
Release: 2022-04-14 17:41:54
Original
8358 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!