From 2c2765115fe6c206347c595475698376048c558a Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 31 Oct 2024 11:28:37 +0900 Subject: [PATCH] DEPENDENCIES: install and update dependencies --- automation_tools/install_dependencies.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/automation_tools/install_dependencies.sh b/automation_tools/install_dependencies.sh index 3daa4edb..350c69a4 100755 --- a/automation_tools/install_dependencies.sh +++ b/automation_tools/install_dependencies.sh @@ -10,17 +10,21 @@ done case "$pkg_mgr" in apt) - sudo apt install -y flatpak flatpak-builder p7zip-full xmlstarlet bzip2 curl jq + # Aggiorna l'indice dei pacchetti, poi installa o aggiorna solo i pacchetti indicati + sudo apt update + sudo apt install --only-upgrade -y flatpak flatpak-builder p7zip-full xmlstarlet bzip2 curl jq ;; pacman) - sudo pacman -S --noconfirm flatpak flatpak-builder p7zip xmlstarlet bzip2 + # Aggiorna i pacchetti specificati senza influenzare il resto del sistema + sudo pacman -Syu --needed --noconfirm flatpak flatpak-builder p7zip xmlstarlet bzip2 ;; rpm-ostree) echo "When using a distro with rpm-ostree, you shouldn't build directly on the host. Try using a distrobox." exit 1 ;; dnf) - sudo dnf install -y flatpak flatpak-builder p7zip p7zip-plugins xmlstarlet bzip2 curl + # Aggiorna i pacchetti specificati senza influenzare il resto del sistema + sudo dnf upgrade --refresh -y flatpak flatpak-builder p7zip p7zip-plugins xmlstarlet bzip2 curl ;; *) echo "Package manager $pkg_mgr not supported. Please open an issue."