From the course: Linux: Package Management for CentOS

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Search for packages

Search for packages - Linux Tutorial

From the course: Linux: Package Management for CentOS

Start my 1-month free trial

Search for packages

- [Instructor] Searching for packages using yum is fairly straightforward. Not only does yum provide a search sub-command, but we can also use the yum list command discussed earlier in the course. To search for a package, just type in yum search followed by the package name. For instance, type in yum space search, space vim and we'll search for the vim package. By default yum searches the name and summary information only. The results are printed in bold. Notice that yum is doing a case-insensitive search. Both lower-case vim and upper-case vim show up. Also notice that the word vim is on every line, either in the name or the summary. To search all metadata including the description, type in yum space search, space all, space vim, and hit enter. Notice that the last line does not have anything in bold. This means that the matching string isn't in the name or summary. It's probably in the description. We can also use yum list all and pipe to grep. Type in yum space list, space all…

Contents