From 2ef6835d1ff1a8b7342cdf6f1af368a51aa83d2a Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Thu, 9 Apr 2020 20:48:39 +0300 Subject: tree-wide: add --no-install-recommends to apt-get There is a truckload of packages being installed, many of which are absolutely not needed. Add --no-install-recommends to apt-get to reduce the image creation time. Signed-off-by: Stijn Tintel --- lib/util.sh | 2 +- root_image | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util.sh b/lib/util.sh index 62076a9..c1a82e8 100644 --- a/lib/util.sh +++ b/lib/util.sh @@ -47,7 +47,7 @@ checkdep() if which apt-get > /dev/null 2>&1 && \ which sudo > /dev/null 2>&1; then echo ", installing $package:" - sudo apt-get -qq install "$package" + sudo apt-get -qq install --no-install-recommends "$package" else echo ", please install" exit 1 diff --git a/root_image b/root_image index 88bd292..7b5d176 100755 --- a/root_image +++ b/root_image @@ -209,7 +209,7 @@ update_packages() _chroot "$MNT" mount -t proc none /proc _chroot "$MNT" apt-get -qq update _chroot "$MNT" apt-get -qq upgrade - _chroot "$MNT" apt-get -qq install "${PACKAGES[@]}" + _chroot "$MNT" apt-get -qq install --no-install-recommends "${PACKAGES[@]}" rm -f "$MNT/var/cache/apt/archives/*.deb" } -- cgit v1.2.3