Table of Contents

RH124 Package Management

TO DO

The commands

The currently enabled (or all) repositories

Jump ahead to dnf command briefly:

$ dnf repolist [--all]
repo id                                    repo name
appstream                                  AlmaLinux 10 - AppStream
baseos                                     AlmaLinux 10 - BaseOS
crb                                        AlmaLinux 10 - CRB
extras                                     AlmaLinux 10 - Extras
$

The /etc config files and directories

/etc/yum*

Deprecated in favour of dnf:

$ tree -F /etc/yum*
/etc/yum/
├── pluginconf.d -> ../dnf/plugins/
├── protected.d -> ../dnf/protected.d/
└── vars -> ../dnf/vars/
/etc/yum.conf@  [error opening dir]
/etc/yum.repos.d/
├── almalinux-appstream.repo
├── almalinux-baseos.repo
├── almalinux-crb.repo
├── almalinux-extras.repo
├── almalinux-highavailability.repo
├── almalinux-nfv.repo
├── almalinux-rt.repo
├── almalinux-saphana.repo
└── almalinux-sap.repo
$

Note that the repo files are still under yum, for backward compatibility:

/etc/dnf

$ tree -F /etc/dnf
/etc/dnf/
├── aliases.d/
├── dnf.conf
├── modules.d/
├── modules.defaults.d/
├── plugins/
│   ├── copr.conf
│   ├── copr.d/
│   └── debuginfo-install.conf
├── protected.d/
│   ├── almalinux-release.conf
│   ├── grub2-pc.conf
│   ├── grub2-tools-minimal.conf
│   ├── selinux-policy-targeted.conf
│   ├── setup.conf
│   ├── sudo.conf
│   ├── systemd.conf
│   └── yum.conf
├── usr-drift-protected-paths.d/
└── vars/
    └── stream
$

Possible EX200 tasks

Detailed package management pages