From the course: CompTIA Linux+ (XK0-005) Cert Prep

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Search for packages with DNF

Search for packages with DNF - Linux Tutorial

From the course: CompTIA Linux+ (XK0-005) Cert Prep

Search for packages with DNF

- [Instructor] Searching for packages using DNF is fairly straightforward. Not only does DNF provide a search subcommand but we can also use the DNF list command discussed earlier. To search for a package, just type "dnf search" followed by the package name, for instance, "dnf search 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 uppercase 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 search --all 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 command, we can also use wildcards, as…

Contents