linux查看命令屬於哪個安裝包

linux查看命令屬於哪個安裝包

==>

yum whatprovides  /usr/bin/c++


比如:

[root@linuxice ~]# yum whatprovides  /usr/bin/c++
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.zju.edu.cn
 * updates: mirrors.zju.edu.cn
gcc-c++-4.4.7-18.el6.x86_64 : C++ support for GCC
Repo        : base
Matched from:
Filename    : /usr/bin/c++



gcc-c++-4.4.7-18.el6.x86_64 : C++ support for GCC
Repo        : installed
Matched from:
Other       : Provides-match: /usr/bin/c++


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章