Home > Article > Operation and Maintenance > How to check whether a certain software is installed in CentOS
How to check whether a certain software is installed in CentOS
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
Recommended learning: navicat tutorial
rpm -qa | grep "软件或者包的名字"
2. If it is installed by yum method, you can use yum list installed to find it. If you want to find the specified Package, add | grep "software name or package name" after the command;
yum list installed | grep "软件名或者包名"
3. If you compile and install the source code package yourself, such as .tar.gz or tar.bz2, this can only be viewed Does the executable file exist, for example
whereis mysql whereis php whereis nginx
Note: If installed as root user, the executable program is usually in the /sbin:/usr/bin directory
This article comes from PHP Chinese website, CentOS usage tutorial column, please pay attention to this column for more related tutorials!
The above is the detailed content of How to check whether a certain software is installed in CentOS. For more information, please follow other related articles on the PHP Chinese website!