在安装命令的过程中,如果利用yum安装的话,通常的话我们直接yum -y install (command-name)就可以安装上了,但是同样有时候,并没有同名字的rpm包存在。下面简单的介绍下识别的方法:
如果我们的系统中没有netstat这个命令,所以yum -y install netstat,肯定是安装不上的
[root@node3 xuejinliang]# yum -y install netstat
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.yun-idc.com
* epel: mirror.premi.st
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Setting up Install Process
No package netstat available.
Error: Nothing to do
会提示我们没有相关的包。这时候
yum whatprovides *netstat
net-tools-1.60-110.el6_2.x86_64 : Basic networking tools
Repo : installed
Matched from:
Filename : /bin/netstat
yum 会列出好多信息,挑选出自己想要的,然后安装上 net-tools就可以了。
如果我们的系统中没有netstat这个命令,所以yum -y install netstat,肯定是安装不上的
[root@node3 xuejinliang]# yum -y install netstat
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.yun-idc.com
* epel: mirror.premi.st
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Setting up Install Process
No package netstat available.
Error: Nothing to do
会提示我们没有相关的包。这时候
yum whatprovides *netstat
net-tools-1.60-110.el6_2.x86_64 : Basic networking tools
Repo : installed
Matched from:
Filename : /bin/netstat
yum 会列出好多信息,挑选出自己想要的,然后安装上 net-tools就可以了。