From 5cf619df82906bc7017b7233f46df73b014647c2 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 4 Sep 2024 16:47:17 +0200 Subject: [PATCH] don't install weak-dependencies for dnf-core-utils We only need the config-manager, but it comes with a large number of weak dependencies; dnf -q install dnf-plugins-core Transaction Summary: Installing: 78 packages Disable weak dependencies to skip those, as they're not essential for this script; dnf -q --setopt=install_weak_deps=False install dnf-plugins-core Transaction Summary: Installing: 32 packages Signed-off-by: Sebastiaan van Stijn --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 4229ea9..e585c3b 100755 --- a/install.sh +++ b/install.sh @@ -558,7 +558,7 @@ do_install() { set -x fi if command_exists dnf5; then - $sh_c "dnf -y -q install dnf-plugins-core" + $sh_c "dnf -y -q --setopt=install_weak_deps=False install dnf-plugins-core" $sh_c "dnf5 config-manager addrepo --save-filename=docker-ce.repo --from-repofile='$repo_file_url'" if [ "$CHANNEL" != "stable" ]; then @@ -567,7 +567,7 @@ do_install() { fi $sh_c "dnf makecache" elif command_exists dnf; then - $sh_c "dnf -y -q install dnf-plugins-core" + $sh_c "dnf -y -q --setopt=install_weak_deps=False install dnf-plugins-core" $sh_c "dnf config-manager --add-repo $repo_file_url" if [ "$CHANNEL" != "stable" ]; then