UNCLASSIFIED

Commit 714b7a8b authored by Salvador Orozco Villalever's avatar Salvador Orozco Villalever Committed by Andy Maksymowicz
Browse files

Remove unnecessary glibc-devel and its dependencies

parent 39308ffc
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment