Commit 08c8e4be authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm release_upgrade: don't clean dnf cache

parent ebce1183
...@@ -124,7 +124,7 @@ epm_release_downgrade() ...@@ -124,7 +124,7 @@ epm_release_downgrade()
docmd epm install dnf docmd epm install dnf
#docmd epm install epel-release yum-utils #docmd epm install epel-release yum-utils
sudocmd dnf --refresh upgrade sudocmd dnf --refresh upgrade
sudocmd dnf clean all #sudocmd dnf clean all
assure_exists dnf-plugin-system-upgrade assure_exists dnf-plugin-system-upgrade
sudocmd dnf upgrade --refresh sudocmd dnf upgrade --refresh
local RELEASEVER="$1" local RELEASEVER="$1"
......
...@@ -564,13 +564,13 @@ epm_release_upgrade() ...@@ -564,13 +564,13 @@ epm_release_upgrade()
return return
;; ;;
"OpenMandrivaLx") "OpenMandrivaLx")
sudocmd dnf clean all #sudocmd dnf clean all
sudocmd dnf distro-sync --allowerasing sudocmd dnf distro-sync --allowerasing
return return
;; ;;
"ROSA") "ROSA")
sudocmd dnf --refresh upgrade || fatal sudocmd dnf --refresh upgrade || fatal
sudocmd dnf clean all #sudocmd dnf clean all
DV=$(echo "$DISTRVERSION" | sed -e "s|\..*||") DV=$(echo "$DISTRVERSION" | sed -e "s|\..*||")
[ "$DV" = "2021" ] && DV=12 [ "$DV" = "2021" ] && DV=12
local RELEASEVER="$1" local RELEASEVER="$1"
...@@ -645,7 +645,7 @@ epm_release_upgrade() ...@@ -645,7 +645,7 @@ epm_release_upgrade()
if [ "$DISTRNAME" = "RockyLinux" ] ; then if [ "$DISTRNAME" = "RockyLinux" ] ; then
sudocmd dnf --refresh upgrade || fatal sudocmd dnf --refresh upgrade || fatal
sudocmd dnf clean all #sudocmd dnf clean all
info "Check https://www.centlinux.com/2022/07/upgrade-your-servers-from-rocky-linux-8-to-9.html" info "Check https://www.centlinux.com/2022/07/upgrade-your-servers-from-rocky-linux-8-to-9.html"
info "For upgrading your yum repositories from Rocky Linux 8 to 9 ..." info "For upgrading your yum repositories from Rocky Linux 8 to 9 ..."
epm install "https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-gpg-keys*.rpm" || fatal epm install "https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-gpg-keys*.rpm" || fatal
...@@ -668,7 +668,7 @@ epm_release_upgrade() ...@@ -668,7 +668,7 @@ epm_release_upgrade()
info "Check https://fedoraproject.org/wiki/DNF_system_upgrade for an additional info" info "Check https://fedoraproject.org/wiki/DNF_system_upgrade for an additional info"
#docmd epm install epel-release yum-utils #docmd epm install epel-release yum-utils
sudocmd dnf --refresh upgrade || fatal sudocmd dnf --refresh upgrade || fatal
sudocmd dnf clean all #sudocmd dnf clean all
assure_exists dnf-plugin-system-upgrade assure_exists dnf-plugin-system-upgrade
sudocmd dnf upgrade --refresh sudocmd dnf upgrade --refresh
local RELEASEVER="$1" local RELEASEVER="$1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment