dotfiles/local/share/updateall/commands.d/pacman

12 lines
275 B
Text
Raw Normal View History

2023-04-13 00:16:36 +02:00
# 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