From e2bc6311af26b54a61fc8d4c788d97abeff515f1 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 3 May 2024 22:01:01 +0200 Subject: [PATCH] dnf --- cd.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cd.sh b/cd.sh index 17cf7ba..c6c9e61 100644 --- a/cd.sh +++ b/cd.sh @@ -179,7 +179,16 @@ deb ${CD_OS_REPO}-security ${CD_OS_VERSION}-security main cd_set_packages_configuration () { cd_step "Set packages configuration" case "${CD_OS_ID}" in - "${CD_OS_ALMA}") cd_mkdir "/etc/dnf/dnf.conf.d" ;; + "${CD_OS_ALMA}") + cd_write "/etc/dnf/dnf.conf" "\ +[main] +best=True +clean_requirements_on_remove=True +gpgcheck=1 +installonly_limit=3 +skip_if_unavailable=False +" + ;; "${CD_OS_DEBIAN}") cd_write "/etc/apt/apt.conf.d/apt.conf" "\ Acquire::Check-Valid-Until True;