From 5361b56e5ee723bc55fcb8a178d29b29c84a6978 Mon Sep 17 00:00:00 2001 From: Vitaliy Pavlov <118689081+v-2841@users.noreply.github.com> Date: Thu, 2 Jul 2026 20:20:15 +0400 Subject: [PATCH] fix(update): avoid full dnf system upgrade (#5717) --- update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index 002f72347..26be12f9c 100755 --- a/update.sh +++ b/update.sh @@ -183,13 +183,13 @@ install_base() { apt-get update > /dev/null 2>&1 && apt-get install -y -q cron curl tar tzdata socat openssl > /dev/null 2>&1 ;; fedora | amzn | virtuozzo | rhel | almalinux | rocky | ol) - dnf -y update > /dev/null 2>&1 && dnf install -y -q cronie curl tar tzdata socat openssl > /dev/null 2>&1 + dnf makecache -y > /dev/null 2>&1 && dnf install -y -q cronie curl tar tzdata socat openssl > /dev/null 2>&1 ;; centos) if [[ "${VERSION_ID}" =~ ^7 ]]; then yum -y update > /dev/null 2>&1 && yum install -y -q cronie curl tar tzdata socat openssl > /dev/null 2>&1 else - dnf -y update > /dev/null 2>&1 && dnf install -y -q cronie curl tar tzdata socat openssl > /dev/null 2>&1 + dnf makecache -y > /dev/null 2>&1 && dnf install -y -q cronie curl tar tzdata socat openssl > /dev/null 2>&1 fi ;; arch | manjaro | parch)