Linux has many ways to install software. There are several ways to check whether a certain software is installed:
1. Software installed in rpm package
Use rpm -qa | grep "Software or package name" command to view
[root@hexuweb102 ~] rpm -qa | grep ruby
2. Software installed with deb package
Use dpkg -l | grep "Software or package name" Name" command to view
[root@hexuweb102~]dpkg-l|grepruby
3. Software installed by yum method
You can use yum list installed | grep "Software name or package name" command to view
[root@hexuweb102 ~] yum list installed | grep ruby
Recommended tutorial:linux 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!