How do I check and see if a package is installed under "Go" Linux?

Source: Internet
Author: User

Because Linux installs a lot of software, there is no common way to find out if some software is installed. This is a summary of the following categories:

1, RPM package installed, you can see with RPM-QA, if you want to find a package is installed, with Rpm-qa | grep "The name of the software or package".

rpm -QA | grep Ruby

2, with the Deb package installed, can be seen with dpkg-l. If you are looking for a specified package, use Dpkg-l | grep "The name of the software or package";

dpkg -l | grep Ruby

3, Yum method installed, can be found with the Yum list installed, if it is to find the specified package, command add | grep "software name or package name";

Yum list installed | grep Ruby

4, if the source code package to compile their own installation, such as. tar.gz or tar.bz2 form, this can only see if the executable file exists,

Both of the above methods do not see the package installed in this source form. If installed as root, the executable program is usually in the/sbin:/usr/bin directory.

How do I check and see if a package is installed under "Go" Linux?

Related Article

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.