From 4be10493e8f995bc9f68f5afb44570b675d366c1 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 10 Aug 2024 07:20:42 +0300 Subject: [PATCH] deb-update.bash: add pacman & checkservices --- bash/deb-update.bash | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bash/deb-update.bash b/bash/deb-update.bash index 6f05029..372b4f4 100755 --- a/bash/deb-update.bash +++ b/bash/deb-update.bash @@ -60,6 +60,16 @@ if hash dnf 2> /dev/null; then dnf -v "$@" autoremove fi +# Arch Linux package management +if hash pacman 2> /dev/null; then + pacman -Syu + + # weekly cache cleanup service + if hash paccache 2> /dev/null; then + systemctl enable paccache.timer + fi +fi + # https://github.com/Homebrew/brew if [[ -d /home/linuxbrew/.linuxbrew/bin && $(id -u) != 0 ]]; then eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) @@ -129,6 +139,12 @@ if hash needrestart 2> /dev/null; then sleep 5 fi +# archlinux-contrib +if hash checkservices 2> /dev/null; then + checkservices + sleep 5 +fi + # Sedric workaround, located in this repo. I trust /root/ if [ -f /root/fixgrub.bash ]; then . /root/fixgrub.bash