Because Linux installs a lot of software, there is no common way to find out if some software is installed. This is a summary of the following categories:
1, RPM package installed, you can see with RPM-QA, if you want to find a package is installed, with Rpm-qa | grep "The name of the software or package".
1 |
[[email protected] ~] rpm -qa | grep ruby |
2, with the Deb package installed, can be seen with dpkg-l. If you are looking for a specified package, use Dpkg-l | grep "The name of the software or package";
1 |
[[email protected]~]dpkg-l|grepruby |
3, Yum method installed, can be found with the Yum list installed, if it is to find the specified package, command add | grep "software name or package name";
1 |
[[email protected] ~] yum list installed | grep ruby |
4, if the source code package to compile their own installation, such as. tar.gz or tar.bz2 form, this can only see if the executable file exists,
Both of the above methods do not see the package installed in this source form. If installed as root, the executable program is usually in the/sbin:/usr/bin directory.
Description: where RPM Yum is a package management command for Redhat Linux, Dpkg is a Debian Series Package management Command
How to see if a software is installed under Linux