From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 1 Deploy, Configure, and Manage (2021)

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

- [Instructor] Searching for packages using DNF is fairly straightforward. Not only does DNF provide a search sub-command, but we can also use the DNF list command discussed earlier. To search for a package, just type DNF space search followed by the package name. For instance, DNF space search space VIM and hit enter. By default, DNF searches the name and summary information only. The results are printed in bold. Notice that DNF is doing a case insensitive search. Both lowercase 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 clear, then type in DNF space search space dash dash all space VIM and hit enter. Notice that the last couple of lines don't have anything in bold. This means that the matching string isn't in the name or the summary. It's probably in the description. With the DNF list…

Contents