标签:
在日常运维工作中,我们发现某个常用命令(比如rz,sz)不存在,这时需要手动yum安装这个命令,但是又想不起来这个工具包的名称,肿么办??
这种情况下,我们可以使用yum search去yum源里搜索,搜索出来后就可以直接yum安装了
比如,系统最小化安装后,发现没有telnet,rz,sz,rsync命令
如下,yum serach搜索下:
[root@openstack-server ~]# yum search telnet
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: ftp.sjtu.edu.cn
* updates: mirrors.aliyun.com
============================================================= N/S matched: telnet =============================================================
perl-Net-Telnet.noarch : Net-Telnet Perl module
telnet.x86_64 : The client program for the Telnet remote login protocol
telnet-server.x86_64 : The server program for the Telnet remote login protocol
tn5250.i686 : 5250 Telnet protocol and Terminal
tn5250.x86_64 : 5250 Telnet protocol and Terminal
Name and summary matches only, use "search all" for everything.
如上,可以yum insyall telnet-server安装telnet
[root@openstack-server ~]# yum search rz
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: ftp.sjtu.edu.cn
* updates: mirrors.aliyun.com
=============================================================== N/S matched: rz ===============================================================
lrzsz.x86_64 : The lrz and lsz modem communications programs
Name and summary matches only, use "search all" for everything.
[root@openstack-server ~]# yum search sz
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: ftp.sjtu.edu.cn
* updates: mirrors.aliyun.com
=============================================================== N/S matched: sz ===============================================================
lrzsz.x86_64 : The lrz and lsz modem communications programs
Name and summary matches only, use "search all" for everything.
如上,可以yum insyall lrzsz安装rz、sz
标签:
原文地址:http://www.cnblogs.com/kevingrace/p/5799403.html