1.2.3 Downloading Oracle Linux Yum Server Repository Files

The Oracle Linux yum server provides a direct mapping of all of the ULN channels that are available to the public, without any specific support agreement. The repository labels that are used for each repository on the Oracle Linux yum server map directly to the channel names on ULN. See Chapter 2, Unbreakable Linux Network for more information about channel names and common suffixes that are used for channels and repositories.

Oracle Linux 8 uses modular yum repository configuration files released as packages that can be maintained through yum, which helps simplify repository management and also ensure that your yum repository definitions are kept up to date automatically whenever you update your system.

A list of all available RPM files to manage all of the possible yum repository configurations for your release can be obtained by running:

# dnf list *release-el8*

To install the yum repository configuration for a particular set of software that you wish to use, use the dnf command to install the corresponding package.

If, for some reason, you manage to remove all configuration to access the Oracle Linux yum server repositories, you should create a temporary yum repository configuration file at /etc/yum.repos.d/ol8-temp.repo with the following as the minimum required content:

name=Oracle Linux $releasever BaseOS ($basearch)

Then, reinstall the oraclelinux-release-el8 package to restore the default yum configuration:

# dnf reinstall oraclelinux-release-el8
# rm /etc/yum.repos.d/ol8-temp.repo

For more information about manually setting up Oracle Linux yum server repository configuration files, see https://yum.oracle.com/getting-started.html.

You can enable or disable repositories in each repository configuration file by setting the value of the enabled directive to 1 or 0, for each repository that is listed in the file, as required. The preferred method of enabling or disabling repositories under Oracle Linux 8 is to use the dnf config-manager command, as described in Section 1.2.4, “Using the DNF config-manager Plugin”.