RPM.
Handles low level work such as extracting, running installation scripts, updating the local package database, verifies integrity.
Doesn’t know about the internet nor package dependencies.
DNF.
YUM was the old package manager. Yellowdog Updater, Modified from Yellow Dog Linux. Redhat later adopted it.
Front end for RPM.
Downloads packages, searches packages.
To refresh package lists, download, and install updates:
sudo dnf update
rpmkeys is the recommended front end to key management in RPM.
To fix an old google-chrome key that would prevent updating:
rpmkeys --list
rpmkeys --erase <Google hash>
# <https://www.google.com/linuxrepositories> specifies the public key URL.
curl <https://dl.google.com/linux/linux_signing_key.pub> | sudo rpmkeys --import -