Mise à jour :
#!/bin/bash
pacman --noconfirm -Syu
if [ -x /usr/bin/yaourt ]; then
yaourt -Syu --devel --aur
fi
orphans=($(pacman -Qdtq))
if [ ${#orphans[*]} -ne 0 ]; then
echo ${orphans[*]} >&2
read -p "Do you want to remove these packages? [y/N] " answer
[[ $answer = [yY]* ]] && pacman -R --noconfirm ${orphans[*]}
fi
Équivalent de etc-update/dispatch-conf : pacdiffviewer (installé par yaourt, voir https://wiki.archlinux.org/index.php/Pacnew_and_Pacsave_Files)
Équivalent de revdep-rebuild : - (inexistant)