CentOS checks whether a software package is installed

Source: Internet
Author: User

CentOS checks whether a software package is installed
1. Run rpm-qa to check whether a software package is installed. Run rpm-qa | grep "software or package name ".
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.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.