CentOS 6.5 x64下查找依賴包,或用YUM安裝

查看某個命令YUM上的安裝源
1)當某個命令不存時進行查詢所依賴的包,如:pstree
[root@localhost ~]# yum provides pstree
  已加載插件:fastestmirror
  Loading mirror speeds from cached hostfile
  * base: mirrors.aliyun.com
  * extras: mirrors.cn99.com
  * updates: mirrors.aliyun.com
  psmisc-22.20-15.el7.x86_64 : Utilities for managing processes on your system
  源 :base
  匹配來源:
  文件名 :/usr/bin/pstree
2)從YUM源上安裝
[root@localhost ~]# yum install psmiscide

相關文章
相關標籤/搜索