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.
Query with RPM
From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 1 Deploy, Configure, and Manage (2021)
Query with RPM
- [Instructor] RPM is used to install local software packages. Once a package is installed, the RPM package database is updated with the package information. We can query that package database. We can also query a package directly even if it isn't installed. In addition, we can query a file. In reality, it's looking through the package database for a reference to the file. This only works for files that belong to software packages. Let's use the RPM command to query the database. In a terminal, type in rpm -qa and hit Enter. The -q option tells RPM to query, and -a means all packages. We could specify the two options individually, but we can also place them next to each other as you see here. Because we haven't specified a package or a file to query, RPM will query the database. We can see from this list that there's a lot of packages installed. If you'd like to have a sorted list, just pipe it into sort. Type…
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
-
-
-
-
-
-
Install from a software repository3m 9s
-
(Locked)
Linux repository management systems2m 43s
-
(Locked)
Query with RPM7m 14s
-
(Locked)
RPM query formatting6m 14s
-
(Locked)
DNF overview3m 2s
-
(Locked)
Select DNF packages by name4m 9s
-
(Locked)
Get info on packages with DNF4m 9s
-
(Locked)
Get info on package groups3m 13s
-
(Locked)
Search for packages1m 34s
-
(Locked)
Install and remove packages4m 7s
-
(Locked)
Install and remove package groups2m 33s
-
(Locked)
Manage OS updates5m 50s
-
(Locked)
Update the kernel5m 30s
-
(Locked)
Manage kernel modules4m 50s
-
-