From 3bc2b894c96e0d7359d3287216b9541271a549d1 Mon Sep 17 00:00:00 2001 From: yuriy Date: Wed, 22 Nov 2023 00:23:04 -0500 Subject: [PATCH] updated update function with cache clear/skip of pacman cache --- .bashrc | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.bashrc b/.bashrc index 85f4c24..76c72f2 100644 --- a/.bashrc +++ b/.bashrc @@ -146,7 +146,7 @@ UpdateAURPackages() { psyu() { # Updates all packages in the system. - # Upstream (i.e. Arch) packages are updated first. + # Upstream (i.eUpdate. Arch) packages are updated first. # If there are Arch updates, you should run # this function a second time to update # the AUR packages too. @@ -366,13 +366,17 @@ parul(){ update() { - # echo "Updating Parcman Packages:" - # pacman -Sy archlinux-keyring ; - # paru -Syu + paru -Sy archlinux-keyring chaotic-keyring endeavouros-keyring --noconfirm --needed # update keyrings + paru -Syu --noconfirm # update packages, no confirmation - # echo "Updating Parcman Packages:" - # sudo pacman -Sy archlinux-keyring chaotic-keyring endeavouros-keyring --noconfirm;paru -Syu --noconfirm;sudo pacman -Scc --noconfirm - sudo pacman -Sy archlinux-keyring chaotic-keyring endeavouros-keyring --noconfirm --needed ; paru -Syu --noconfirm --needed ; echo $(sudo ls /var/cache/pacman/pkg/ | wc -l) packages in cache + # Skip clearing update cache if this is Flexo Server + if [[ $(hostname) == "EOS-SERVER" ]]; then + echo "Skipping Clearing Update Cache" + else + echo "Clearing out Pacman Cache" + echo clearing out $(sudo ls /var/cache/pacman/pkg/ | wc -l) packages in cache + ( echo "y"; echo "y" ) | paru -Scc + fi echo "Updating Flatpak packages:" flatpak update