You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 8
Next »
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
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
|