diff --git a/scripts/install_external.sh b/scripts/install_external.sh index ab09e1562f614fb336a3c80988db07597c44b572..3ac99f4535276902dd14f9407a85217067840b79 100644 --- a/scripts/install_external.sh +++ b/scripts/install_external.sh @@ -140,15 +140,20 @@ function performPreInstallationTasksForExternalBuild() function installPackages() { if [ "$PLATFORM_NAME" == "$RHEL8" ]; then - ACCEPT_EULA=Y dnf -q -y --disableplugin=subscription-manager install \ - $(getListOfPackagesToInstall) - - elif [ "$PLATFORM_NAME" == "$RHEL7" ]; then - ACCEPT_EULA=Y yum -y --nogpgcheck install \ + ACCEPT_EULA=Y dnf -q -y -v --disableplugin=subscription-manager install \ $(getListOfPackagesToInstall) fi } +# Function that removes packages from the container image +# which are not actually needed. +# +function removeUnnecessaryPackages() +{ + dnf remove -y -v \ + glibc-devel +} + # Function that performs post-installation tasks # common across build environments. # @@ -181,6 +186,8 @@ function performCommonPostInstallationTasks # Remove files from /tmp. # rm -rf /tmp/* + + removeUnnecessaryPackages } # Function that drives the installation of packages