Skip to content

Commit 5cf619d

Browse files
committed
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 <github@gone.nl>
1 parent b982474 commit 5cf619d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ do_install() {
558558
set -x
559559
fi
560560
if command_exists dnf5; then
561-
$sh_c "dnf -y -q install dnf-plugins-core"
561+
$sh_c "dnf -y -q --setopt=install_weak_deps=False install dnf-plugins-core"
562562
$sh_c "dnf5 config-manager addrepo --save-filename=docker-ce.repo --from-repofile='$repo_file_url'"
563563

564564
if [ "$CHANNEL" != "stable" ]; then
@@ -567,7 +567,7 @@ do_install() {
567567
fi
568568
$sh_c "dnf makecache"
569569
elif command_exists dnf; then
570-
$sh_c "dnf -y -q install dnf-plugins-core"
570+
$sh_c "dnf -y -q --setopt=install_weak_deps=False install dnf-plugins-core"
571571
$sh_c "dnf config-manager --add-repo $repo_file_url"
572572

573573
if [ "$CHANNEL" != "stable" ]; then

0 commit comments

Comments
 (0)