updated update function with cache clear/skip of pacman cache
This commit is contained in:
parent
d640a50b17
commit
3bc2b894c9
18
.bashrc
18
.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
|
||||
|
Loading…
Reference in New Issue
Block a user