How to find installed software in Linux,

Source: Internet
Author: User

How to find installed software in Linux,

1. rpm

Note that rpm is case sensitive.

Query installed packages starting with mysql

Rpm-qa mysql *

Query installed mysql packages

Rpm-qa | grep mysql

 

The rpm method sometimes has all installed packages.

 

2. yum

List all conditions of a specified package

Yum list package

 

Yum list | grep installed

 

3. whereis

Sometimes you can find the path of the corresponding package by searching for files.

For example, whereis mysql

 

4. ps

You can find the path of the corresponding package by searching the process.

Ps-ef | grep mysql

 

 

 

Problem: if the software installed by source code cannot be found through the above method, the rpm and yum methods are only applicable to software installed by rpm and yum, because the software installed in these two ways can be identified by default when running the command system, and the software installed in the source code method can be identified by the system unless a soft connection is established or through the configuration file, otherwise, you cannot search by using the two methods, but you can search by using the ps analysis process.

 

 

Note:

Author: pursuer. chen

Blog: http://www.cnblogs.com/chenmh

All essays on this site are original. You are welcome to repost them. However, you must indicate the source of the article and clearly provide the link at the beginning of the article. Otherwise, you will be held accountable.

Welcome to discussion

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.