These are my notes regarding RockyLinux. Some notes will probably also be relevant to similar distros.
Package manager — installing stuff
DNF vs. YUM
Both YUM (Yellowdog Updater, Modified) and DNF (Dandified YUM) borrow the RPM (Red Hat Package Manager) package format to perform package management tasks like installing, updating and removing packages. This is why the syntax is very similar.
Basically Yum Package Manager has been replaced by the DNF Package Manager, because many long-standing issues in Yum remoain unsolved. DNF has following improvements over YUM:
Support for rollback transactions.
Support for package metadata.
Better performance and dependency resolution.
New, faster, and more efficient database format.
Better multiple version handling mechanisms for packages.
So use DNF!
Installing a specific version
RockyLinux uses thoroughly tested software by default. This means that if you want to run newer versions, you have to explicitly select it. To enable a different version, there's a sequence of commands you need to run through.
Here's an example where I wanted to install PHP 8.2: