KASM-4027 detect changes to rhel script, update repo names splashed on...

This commit is contained in:
Ryan Kuba 2024-10-28 20:16:12 +00:00 committed by Richard Koliser
parent 0a8230a74e
commit 763f46a7fa
4 changed files with 21 additions and 12 deletions

View File

@ -17,7 +17,9 @@ elif [ "${DISTRO}" == "oracle8" ]; then
dnf install -y ffmpeg pulseaudio-utils
elif [[ "${DISTRO}" == @(oracle9|rhel9) ]]; then
dnf install -y --allowerasing curl git
dnf config-manager --set-enabled ol9_codeready_builder
if [[ "${DISTRO}" == "oracle9" ]]; then
dnf config-manager --set-enabled ol9_codeready_builder
fi
dnf localinstall -y --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-9.noarch.rpm
dnf install -y --allowerasing ffmpeg pulseaudio-utils pulseaudio
elif [[ "${DISTRO}" == @(rockylinux9|almalinux9) ]]; then

View File

@ -7,7 +7,7 @@ prepare_rpm_repo_dependencies() {
elif [[ "$DISTRO" = "oracle8" ]]; then
dnf config-manager --set-enabled ol8_codeready_builder
dnf install -y oracle-epel-release-el8
elif [[ "${DISTRO}" == @(oracle9|rhel9) ]]; then
elif [[ "${DISTRO}" == "oracle9" ]]; then
dnf config-manager --set-enabled ol9_codeready_builder
dnf install -y oracle-epel-release-el9
fi

View File

@ -9,29 +9,29 @@ fi
# Add OL9 repos to RHEL
cat >>/etc/yum.repos.d/oracle-linux-ol9.repo <<EOL
[ol9_appstream]
name=RHEL Application Stream Packages (\$basearch)
[el9_appstream]
name=Enterprise Linux Application Stream Packages (\$basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL9/appstream/\$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
[ol9_codeready_builder]
name=RHEL CodeReady Builder (\$basearch) - (Unsupported)
[el9_codeready_builder]
name=Enterprise Linux CodeReady Builder (\$basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL9/codeready/builder/\$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
[ol9_baseos_latest]
name=RHEL BaseOS Latest (\$basearch)
[el9_baseos_latest]
name=Enterprise Linux BaseOS Latest (\$basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL9/baseos/latest/\$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
[ol9_distro_builder]
name=RHEL Distro Builder (\$basearch) - (Unsupported)
[el9_distro_builder]
name=Enterprise Linux Distro Builder (\$basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL9/distro/builder/\$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
@ -145,3 +145,8 @@ RgwnCPfIai7lLNx95bdwB8U2NpY11OXsoTLZAA==
=UWTf
-----END PGP PUBLIC KEY BLOCK-----
EOL
# Disable subscription manager
sed -i \
's/enabled=1/enabled=0/g' \
/etc/yum/pluginconf.d/subscription-manager.conf

View File

@ -112,8 +112,10 @@ elif [ "$DISTRO" = "oracle8" ]; then
xfce4-notifyd \
xset
elif [[ "${DISTRO}" == @(oracle9|rhel9) ]]; then
dnf config-manager --set-enabled ol9_codeready_builder
dnf config-manager --set-enabled ol9_distro_builder
if [[ "${DISTRO}" == "oracle9" ]]; then
dnf config-manager --set-enabled ol9_codeready_builder
dnf config-manager --set-enabled ol9_distro_builder
fi
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
dnf group install xfce -y -x oracle-backgrounds
dnf install -y \