1.1 About DNF

The yum utility that is provided with Oracle Linux 8 is based on Dandified Yum (DNF). You can use dnf to install or upgrade RPM packages, while automatically handling package dependencies and requirements. The dnf command can be used to download the packages from repositories such as those that are available on the Oracle Linux yum server, but you can also set up your own repositories on systems that do not have Internet access. You can also use the dnf command on systems that are registered with the Unbreakable Linux Network (ULN) to install additional software that is limited to Oracle Linux Premier Support customers.

DNF provides significant improvements in functionality and performance when compared to the traditional yum command. DNF also brings a host of new features, including support for modular content and a more stable and well documented API. DNF is compatible with Yum v3, when used from the command line or when editing or creating configuration file. You can use the dnf command and all of its options similarly to how you used the yum command on previous releases of Oracle Linux.

The yum command that is provided with Oracle Linux 8 is a symbolic link to the dnf command. The commands are completely interchangeable. This implementation provides a level of backward compatibility that enables you to perform similar tasks to those that you performed in earlier releases of Oracle Linux, while at the same time, facilitating the wider range of new features that are available in dnf, such as improved package management and performance. Syntax differences between dnf and legacy yum commands are described in detail in Oracle® Linux 8: Release Notes for Oracle Linux 8.