Home  >  Article  >  Operation and Maintenance  >  Check if the software is installed in linux

Check if the software is installed in linux

王林
王林Original
2019-11-05 10:39:193655browse

Check if the software is installed in linux

1. If the rpm package is installed, you can use rpm -qa to see it. If you want to find out whether a certain software package is installed, use rpm -qa | grep "the name of the software or package"

rpm -qa | grep perl

2. Installed with deb package, you can use dpkg -l to see it. If you are looking for a specified software package, use dpkg -l | grep "the name of the software or package"

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

3. If it is 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

Recommended tutorial: linux tutorial

The above is the detailed content of Check if the 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