linux命令yum search用于在yum软件仓库中搜索软件包。当大家想要安装一个新的软件包,但不确定它的确切名称时,可以使用此命令来搜索相关的软件包。

1.yum search用法

yum search <关键词>

2.yum search样例

命令:

yum search httpd

[root@elasticsearch ~]# yum search httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
=========================================== N/S matched: httpd ============================================
httpd.x86_64 : Apache HTTP Server
httpd-devel.x86_64 : Development interfaces for the Apache HTTP server
httpd-manual.noarch : Documentation for the Apache HTTP server
httpd-tools.x86_64 : Tools for use with the Apache HTTP Server
libmicrohttpd.x86_64 : Lightweight library for embedding a webserver in applications
mod_dav_svn.x86_64 : Apache httpd module for Subversion server

  Name and summary matches only, use "search all" for everything.
[root@elasticsearch ~]#