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 psmisc