码迷,mamicode.com
首页 > 其他好文 > 详细

yum search查询工具包名称

时间:2016-08-23 16:44:04      阅读:3924      评论:0      收藏:0      [点我收藏+]

标签:

 

在日常运维工作中,我们发现某个常用命令(比如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

yum search查询工具包名称

标签:

原文地址:http://www.cnblogs.com/kevingrace/p/5799403.html

(0)
(1)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!