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++


Logo

更多推荐