deb-update.bash: add pacman & checkservices

This commit is contained in:
Aminda Suomalainen 2024-08-10 07:20:42 +03:00
parent ddf13278bd
commit 4be10493e8
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -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