CentOS 7 /RHEL7: How To Search Software Packages Using YUM

when you want to install one software in your linux system, but you do not know what the software name is. At this time, you can use yum search command to search the packages that you want to install, you just need to specifiy a related tern of software package. How Do I search a software package under centos 7 or RHEL 7 ? How to use yum searching packages in linux operating system?

This post will guide you how to use yum command to search for packages matching a specific string.

CentOS 7 YUM Searching Packages

You can use “yum search” command to search all RPM package names, descriptions and summaries.issue the following command:

yum search <packages term>

Example: Searching all available packages matching “httpd” terms

[root@devops Desktop]# yum search httpd

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

* base: mirrors.nwsuaf.edu.cn

* extras: mirrors.nwsuaf.edu.cn

* updates: mirrors.nwsuaf.edu.cn

============================================== N/S matched: httpd ==============================================

libmicrohttpd-devel.i686 : Development files for libmicrohttpd

libmicrohttpd-devel.x86_64 : Development files for libmicrohttpd

libmicrohttpd-doc.noarch : Documentation for libmicrohttpd

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.i686 : Lightweight library for embedding a webserver in applications

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.

If you just run “yum search” command with “packages term”, then there are just only Name and summary matches for output. you can use “yum search all” command for more detailed information.

[root@devops Desktop]# yum search all httpd

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

* base: mirrors.nwsuaf.edu.cn

* extras: mirrors.nwsuaf.edu.cn

* updates: mirrors.nwsuaf.edu.cn

================================================ Matched: httpd ================================================

libmicrohttpd-doc.noarch : Documentation for libmicrohttpd

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.i686 : Lightweight library for embedding a webserver in applications

libmicrohttpd.x86_64 : Lightweight library for embedding a webserver in applications

libmicrohttpd-devel.i686 : Development files for libmicrohttpd

libmicrohttpd-devel.x86_64 : Development files for libmicrohttpd

httpd.x86_64 : Apache HTTP Server

mod_dav_svn.x86_64 : Apache httpd module for Subversion server

mod_fcgid.x86_64 : FastCGI interface module for Apache 2

mod_ldap.x86_64 : LDAP authentication modules for the Apache HTTP Server

mod_proxy_html.x86_64 : HTML and XML content filters for the Apache HTTP Server

mod_session.x86_64 : Session interface for the Apache HTTP Server

mod_ssl.x86_64 : SSL/TLS module for the Apache HTTP Server

So “YUM search” comman mainly used to search for packages that you do not know the exect package name and just know a related package terms.

done…

You might also like:

Sidebar



back to top