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>
This commit is contained in:
Sebastiaan van Stijn committed 2024-09-11 13:00:07 +02:00
1 parent b9824740ec
commit 5cf619df82
1 file changed
+2 -2
+2 -2
View File
@@ -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