DNF & Repos
The yum utility that is provided with Oracle Linux 8 is based on Dandified Yum (DNF). We 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 we can also set up your own repositories on systems that do not have Internet access. We 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.
The repositories that are available on the Oracle Linux yum server are aligned with the channels that are available from the Unbreakable Linux Network (ULN). Exceptions are any ULN channels that are limited to Oracle Linux Premier Support customers, for example, channels for products such as Ksplice.
Compute nodes running Oracle Linux on Oracle Cloud Infrastructure and that are connected to a service gateway automatically have access to ULN content via the regional yum servers available on the Oracle Services Network. These yum servers differ from the publicly available Oracle Linux yum server in that they also mirror content available on restricted ULN channels.
Access to ULN content is provided by virtue of the support contract that you have for your Oracle Cloud Infrastructure account. You are able to access content on ULN without any requirement to register or use alternate tools to manage channel access, simplifying any software management that you need to perform on a compute node.
To enable access to restricted content via the regional yum servers, ensure that you have installed the appropriate release-el8 packages and enabled the repositories that you require access to.
The main configuration file for DNF is /etc/dnf/dnf.conf. The global definitions for DNF are located under the [main] section heading of the DNF configuration file.
It is possible to define repositories below the [main] section in /etc/dnf/dnf.conf or in separate repository configuration files. By default, dnf expects any repository configuration files to be located in the /etc/yum.repos.d directory, unless you use the reposdir directive to define alternate directories.
Note that for backward-compatibility purposes, a symbolic link to /etc/dnf/dnf.conf is created at /etc/yum.conf. The configuration syntax is generally the same; although, some configuration options have been deprecated and some new configuration options have been added
DNF Usage :
Roll back Packages with DNF :
Following are the Repos :
BaseOS: Primarily Core operating system packages with support for the lifetime of the OS.
Appstream: user-space applications and components, including numerous Application Streams (e.g compilers, scripting languages, databases etc).
CodeReady Builder: Additional libraries and tools for developers.
Supplementary: 3rd party Support only.
Comments
Post a Comment