Versions Compared

Key

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

Use this command line script to pin Rocky repository urls to 8.4

Code Block
sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \
         -e 's|^#baseurl=http://dl.rockylinux.org/$contentdir/$releasever|baseurl=https://dl.rockylinux.org/vault/rocky/8.4|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

Code Block
epel-modular.repo
epel.repo

comment out metalink property

Code Block
#metalink=https://mirrors.fed...

set baseurl property

Code Block
baseurl=[URL]

...

Info

Must be done before running an updated.

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

i.e.

Code Block
echo 7.8.2023 > /etc/yum/vars/releasever