RHEL 8 Cheat Sheet
Get the cheat sheet
dnf is an upgraded package manager that replaces the classic yum application in Red Hat Enterprise Linux (RHEL) 8. It brings increased performance, faster dependency resolution, and more complete documentation for its API.
This cheat sheet covers basic dnf commands and introduces the Subscription Manager and Application Streams features for developers in RHEL 8.
Subscription Manager keeps track of the various remote repositories that host application packages. It does the work of binding to a repository, so you don’t have to write code to do the binding.
With Application Streams, you can run multiple versions of a program or module on a local machine. This lets you switch between different versions on demand without having to manage the details of upgrading or downgrading an application or module.
Download the RHEL 8 Cheat Sheet to learn useful commands for:
Working with the dnf package manager:
Working with Subscription Manager:
Working with Application Streams:
dnf module info
dnf module list
dnf module provides
dnf module enable
dnf module remove
dnf module disable
dnf module switch-to
dnf module reset
Installing popular modules, applications, and programming languages:
- Buildah and Podman
- Apache HTTP
- Apache Maven
- Java Development Kit
- Simplified Wrapper and Interface Generator (SWIG)
With Red Hat Developer cheat sheets, you get essential information right at your fingertips so you can work faster and smarter. Easily learn new technologies and coding concepts and quickly find the answers you need.
dnf install [options] <module_name>
Installs a module on the local machine.
The following command installs the perl programming language on the local computer. The command uses the -y option to suppress the prompt that asks the user for permission to proceed:
sudo dnf install -y perl
The command produces too much screen output to show here.
dnf update [options] <module_name>
Updates a module on the local machine.
The following command updates the perl programming language on the local computer. The command uses the -y option to suppress the prompt asking the user for permission to proceed:
$ sudo dnf update -y perl Updating Subscription Management repositories. Last metadata expiration check: 2:58:35 ago on Thu 27 Jan 2022 08:48:07 AM PST. Dependencies resolved. Nothing to do. Complete!