Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Must be done before running an updated.

In the /etc/yum/vars directory, add file named releasever containing the requested version.

i.e.

echo 7.8.2023 > /etc/yum/vars/releasever

 manually update repo config files

preinstall epel repo config

dnf install epel-release

Add repository config variables

echo VERSION > /etc/yum/vars/releasever
echo CONTENTDIR > /etc/yum/vars/contentdir

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

Script to pin Rocky repository urls to specific release version

sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \
         -e 's|^#baseurl=|baseurl=|g' \
         -i.bak \
         /etc/yum.repos.d/Rocky-AppStream.repo \
         /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

    epel-modular.repo
    epel.repo
  • No labels