Modules and rpm queries
Sign in to read this lesson
One application needs an older PHP, another a newer one — RHEL solves this with AppStream modules. The tool for asking precise questions about installed packages is rpm. In this lesson we learn to choose module streams and to check a package's files, configuration, scripts and integrity with rpm.
What you will learn
- A module offers several version streams of an application:
nodejs:18,nodejs:20;dnf module listshows them. dnf module enable nodejs:20selects a stream, thendnf install nodejsbrings that version; to switch streams usemodule reset.rpm -qaall,rpm -qidetails,rpm -qlfiles,rpm -qcconfiguration files,rpm -qf filethe owning package.rpm -V packagechecks whether files have changed — useful for "who changed what".- Install packages with
dnf install ./file.rpm, notrpm -i— dnf resolves the dependencies.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.