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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
Software management systems overview5m 52s
-
(Locked)
DNF overview3m 2s
-
(Locked)
Get DNF packages by name4m 9s
-
(Locked)
Get info on packages with DNF4m 9s
-
(Locked)
Get info on package groups with DNF3m 13s
-
(Locked)
Search for packages with DNF1m 34s
-
(Locked)
Install and remove packages with DNF4m 7s
-
(Locked)
Install and remove package groups with DNF2m 33s
-
(Locked)
Get package information with RPM8m 15s
-
(Locked)
Manage DNF repositories5m 32s
-
(Locked)
Manage OS updates5m 50s
-
(Locked)
Update the kernel5m 30s
-
(Locked)
Manage kernel modules4m 50s
-
(Locked)
Get package information with dpkg and APT5m 40s
-
(Locked)
Manage software with dpkg and APT3m 55s
-
(Locked)
Work with APT repositories8m 2s
-
(Locked)
Install software from source4m 58s
-
(Locked)
About sandboxed applications8m 44s
-
-
-
-
-
-
-
-
-
-
-