How to check the software installation path in CentOS system?

Time:2021-1-6

Linux system is generally a command line interface, and the installed software is also installed through the command. For the software package update and uninstall, sometimes you need to check whether there is a change in the software, and the path of software installation and storage is necessary for modifying the configuration file. So how to check the software installation path? Small series CentOS system as an example of demonstration, a simple way to find the software installation path

1、View by rpm

Check to see if the software is installed. First of all, we need to check whether the software has been installed, or check the name of the installed package. For example, find out whether to install mysql

 

2. Then list the files of package installation according to RPM – QL

3. Considering the above problems, you can directly use | RPM – QAL | grep | MySQL | to view the file storage locations of all MySQL installation packages

4、Yum search

In addition to RPM query, you can also use Yum search to find the corresponding software packages that can be installed

5、Other search methods

In addition to finding the file location according to the software package, the most common way is to find a keyword through find, such as mysql, all the file paths containing MySQL services

6、Which find command

Which command is used to find the executable file path through the path environment variable, which is used to find the folder where the command is located

7、The whereis command is similar to findHowever, the difference is that where is is faster through the local database index. If you don’t update the file or command in the database, you can’t find the information

Recommended Today

asp.net Application of regular expression

1. Balanced group / recursive matching (?’ Group ‘), which is called the corresponding content of group, and counts it on the stack;(?’- Group ‘), and count the corresponding content named group out of the stack(?!) Zero width negative look ahead assertion. Since there is no suffix expression, attempts to match always failRegular example:,{0,1}”5″:\[[^\[\]]*(((?’Open’\[)[^\[\]]*)+((?’-Open’\])[^\[\]]*)+)*(?(Open)(?!))\],{0,1} Test […]