Main Menu

Search

Friday, September 6, 2024

ORACLE LINUX: Yum / DNF Environment Variables File For Connecting To Public Yum Repository

"/etc/yum/vars" is the directory which has yum / dnf variables for connecting to Public Yum repository in Oracle Linux

We have following 2 files under "/etc/yum/vars" directory

  • ocidomain    - Has the domain name for public yum.
  • ociregion - Has public yum hostname. Usually blank.

In repo files under /etc/yum.repos.d directory you will have lines as follows to connect to public yum.

name=Oracle Linux 8 UEK6 RDMA ($basearch)
baseurl=https://yum$ociregion.oracle.com/uln/OracleLinux/OL8/UEKR6/RDMA/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0



No comments:

Post a Comment