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
# vault/rocky > /etc/yum/vars/contentdir |
Script to pin Rocky repository urls to specific release version Code Block |
---|
sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=|baseurl=|g' \
-i.bak \
/etc/yum.repos.d/rockyRocky-appStreamAppStream.repo \
/etc/yum.repos.d/rockyRocky-baseOSBaseOS.repo \
/etc/yum.repos.d/rockyRocky-develDevel.repo \
/etc/yum.repos.d/rockyRocky-extrasExtras.repo \
/etc/yum.repos.d/rockyRocky-highAvailabilityHighAvailability.repo \
/etc/yum.repos.d/rockyRocky-mediaMedia.repo \
/etc/yum.repos.d/rockyRocky-plusPlus.repo \
/etc/yum.repos.d/rockyRocky-powerToolsPowerTools.repo \
/etc/yum.repos.d/rockyRocky-RT.repo \
/etc/yum.repos.d/rockyRocky-sourcesSources.repo |
|
|