How does CentOS check whether a software package is installed?
This article mainly introduces CentOS how to check whether a software package has been installed, the article is very detailed, has a certain reference value, interested friends must read it!
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".
2. If installed with deb package, you can see it with dpkg-l. If you are looking for the specified package, use dpkg-l | grep "the name of the software or package"
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, add the command to | grep "software name or package name".
4. If the source code package is compiled and installed by itself, such as .tar.gz or tar.bz2, it only depends on whether the executable file exists.
The above is all the contents of the article "how to check whether a software package is installed by CentOS". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!