From 7f1494a43348da65c0006c8d2477c6ab36bd5fb1 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Wed, 19 Oct 2016 18:59:07 +0100 Subject: [PATCH] elements: zypper: Do not pull recommended packages Recommended packages are usually useful but we normally don't need them in order to have a working system. As a result, avoid pulling them in when doing a regular package installation or a distribution update. Extra packages can be pulled in using the usual '-p' parameter or from within the elements that actually need them. The results of this change are quite significant, resulting to gains from a few dozen of MBs up to a few hundred depending on the selected elements. Change-Id: I5838829c631990c7a1f3b67548accd9a603fe20c --- elements/zypper/bin/install-packages | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elements/zypper/bin/install-packages b/elements/zypper/bin/install-packages index 0460ce21..7728b2e4 100755 --- a/elements/zypper/bin/install-packages +++ b/elements/zypper/bin/install-packages @@ -20,7 +20,7 @@ fi set -eu set -o pipefail -EXTRA_ARGS="" +EXTRA_ARGS="--no-recommends" MAP_ELEMENT="" ACTION=install @@ -47,7 +47,7 @@ eval set -- "$TEMP" while true ; do case "$1" in - -u) run_zypper dist-upgrade; exit 0;; + -u) run_zypper dist-upgrade --no-recommends; exit 0;; -e) ACTION="remove"; shift;; -d) EXTRA_ARGS="--download-only"; shift;; -m) MAP_ELEMENT=$2; shift 2;;