We take pip command example
Method One :
Path confirmation command
# which pip
/usr/bin/pip
Use yum search command pip which belong rpm package
# yum whatprovides /usr/bin/pip
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.sina.cn
* Warm: mirrors.ustc.edu.cn
* extras: mirrors.zju.edu.cn
* updates: mirrors.zju.edu.cn
python-pip-7.1.0-1.el6.noarch : A tool for installing and managing Python packages
Repo: warm
Matched from:
Filename : /usr/bin/pip
python-pip-7.1.0-1.el6.noarch : A tool for installing and managing Python packages
Repo : installed
Matched from:
According to the above information, it is understood pip from python-pip-7.1.0-1.el6.noarch envelope .
In addition yum provides / whatprovides accept wildcard options:
If you do not know the command path, it can also be used to solve the wildcard
yum whatprovides *pip
About yum other usage can man yum View
Method Two :
Path confirmation command
# whereis pip
pip: /usr/bin/pip2.6 /usr/bin/pip
Find command belonging to the installation package
# rpm -qf /usr/bin/pip
python-pip-7.1.0-1.el6.noarch
This list rpm all the files in the package
# rpm -ql python-pip-7.1.0-1.el6.noarch
Query whether to install an rpm package .
rpm -qa python-pip