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 Code Block |
---|
sudo -i
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=|baseurl=|g' \
-i.bak \
/etc/yum.repos.d/rocky-appStream.repo \
*repo |
|
rockybaseOS\ rocky-devel.repo \
/etc/yum.repos.d/rocky-extras.repo \
/etc/yum.repos.d/rocky-highAvailability.repo \
epel-cisco-openh264.repo
vim /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 |