Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titlemanually update repo config files

preinstall epel repo config

Code Block
dnf install epel-release

Add repository config variables

Code Block
echo [VERSION] > /etc/yum/vars/releasever
echo [CONTENTDIR] > /etc/yum/vars/contentdir

# i.e.
# echo 9.1 > /etc/yum/vars/releasever
# echo vault/rocky > /etc/yum/vars/contentdir

Script to pin Rocky repository urls to specific release version

  • run with privledges

Code Block
sudo -i
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
         -e 's|^#baseurl=|baseurl=|g' \
         -i.bak \
         /etc/yum.repos.d/Rocky-AppStream.repo \
         rocky*repo

  • Need to update the EPEL repository URL as well

    Code Block
    vim /etc/yum.repos.d/
Rocky-BaseOS.repo \          /etc/yum.repos.d/Rocky-Devel.repo \          /etc/yum.repos.d/Rocky-Extras.repo \          /etc/yum.repos.d/Rocky-HighAvailability.repo \          /etc/yum.repos.d/Rocky-Media.repo \          /etc/yum.repos.d/Rocky-Plus.repo \          /etc/yum.repos.d/Rocky-PowerTools.repo \          /etc/yum.repos.d/Rocky-RT.repo \          /etc/yum.repos.d/Rocky-Sources.repo
  • Need to update the EPEL repository URL as well

    Code Block
    epel-modular.repo
    vim /etc/yum.repos.d/epel-cisco-modularopenh264.repo
    vim /etc/yum.repos.d/epel.repo

References

  • Output variables

    Code Block
    dnf config-manager --dump-variables