CentOS checks whether a software package is installed
Source: Internet
Author: User
1. you can use rpm-qa to check whether a software package is installed. use rpm-qa | grep & quot; software or package name & quot ;. 2. you can use dpkg-l to view the deb package. To search for a specified software package, run dpkg-l | grep & quot; software or package name & quot; 3. run yum listinstalled to find the package, if you want to find the specified package, run Command 1 and install the rpm package, you can use rpm-qa to check whether a software package is installed, use rpm-qa | grep "name of the software or package ".
2. you can use dpkg-l to view the deb package. If you are looking for a specified software package, use dpkg-l | grep "software or package name ";
3. you can use the yum list installed method to find the specified package. if you want to find the specified package, add | grep "software name or package name" after the command ";
4、if the source code package is compiled and installed, for example, in the form of .tar.gz?tar.bz2, this can only be used to check whether the executable file exists,
Neither of the above methods can see the packages installed in this source code form. If the program is installed as a root user, the executable program is usually in the/sbin:/usr/bin directory.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service