Skip to content

Commit bc73926

Browse files
author
Nelson Wang
committed
Shrinking redhat image size
1 parent b41ab59 commit bc73926

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

base/redhat-8/install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ microdnf -y --nodocs install glibc-langpack-en
2626
#We get around the gen above by forcing the language install, and then point to it.
2727
export LANG=en_US.utf8
2828

29-
microdnf -y --nodocs install wget sudo shadow-utils procps
29+
microdnf -y --nodocs install wget sudo shadow-utils procps tar
3030
#install busybox direct from the multiarch since epel isn't availible yet for redhat8
3131
wget -O /bin/busybox https://busybox.net/downloads/binaries/1.28.1-defconfig-multiarch/busybox-`arch`
3232
chmod +x /bin/busybox
33-
microdnf -y --nodocs install gcc redhat-rpm-config python2-devel libffi-devel openssl-devel tar
33+
microdnf -y --nodocs install python2-pip python2-devel redhat-rpm-config gcc libffi-devel openssl-devel
3434
pip2 --no-cache-dir install requests ansible
35-
microdnf -y remove gcc libffi-devel openssl-devel
36-
microdnf clean all
35+
microdnf -y remove gcc libffi-devel openssl-devel redhat-rpm-config python2-devel device-mapper-libs device-mapper cryptsetup-libs systemd systemd-pam dbus dbus-common dbus-daemon dbus-tools dbus-libs go-srpm-macros iptables-libs ocaml-srpm-macros openblas-srpm-macros qt5-srpm-macros perl-srpm-macros rust-srpm-macros ghc-srpm-macros platform-python python3-rpm-generators platform-python-setuptools python3-libs platform-python-pip python3-rpm-generators python3-rpm-macros elfutils-libs efi-srpm-macros zip unzip xkeyboard-config libxkbcommon redhat-rpm-config util-linux dwz file file-libs findutils iptables-libs diffutils annobin python-rpm-macros python-srpm-macros python2-devel python2-rpm-macros kmod-libs libfdisk libffi-devel libpcap libseccomp libutempter
36+
3737

3838
cd /bin
3939
ln -s python2 python || true

0 commit comments

Comments
 (0)