1
0
Fork 0
forked from ahurac/dotfiles
ahuarc-dotfiles/local/share/updateall/commands.d/pacman
2023-04-13 00:16:36 +02:00

11 lines
275 B
Text

# Gathering orphaned packages list
echo "Gathering orphaned packages list..."
orphaned_packages="$(pacman -Qtdq)"
if [[ ! -z $orphaned_packages ]]; then
echo "$orphaned_packages" | sudo pacman -Rns -
else
echo "No package to be removed."
fi
unset orphaned_packages