Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to check if the software is installed by linux

Shulou Source: shulou.com Published: 2022-06-03 06:30:15 09月21日 Update

Today, the editor will bring you an article on how to check whether the software is installed by linux. The editor thinks it's pretty good, so I'll share it for you as a reference. Let's follow the editor and have a look.

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

Rpm-qa | grep perl

2. Install with deb package, which can be seen with dpkg-l. If you are looking for the specified package, use dpkg-l | grep "the name of the software or package"

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

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

The above is the specific operation of linux how to check whether the software is installed, the code is detailed and clear, if you encounter this problem in your daily work, I hope you can solve the problem through this article. If you want to know more about it, welcome to follow the industry information channel!

Tags: Software names software packages problems good clear for this code content that is articles methods daily work more read it articles industries information channels channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn macOS Xiaomi Huawei Shulou Tech Info