Files
arthur-os/bin/omarchy-update-orphan-pkgs
T
2026-04-28 12:03:46 -04:00

14 lines
311 B
Bash
Executable File

#!/bin/bash
# omarchy:summary=Remove orphaned system packages after updates
# omarchy:requires-sudo=true
orphans=$(pacman -Qtdq || true)
if [[ -n $orphans ]]; then
echo -e "\e[32m\nRemove orphan system packages\e[0m"
for pkg in $orphans; do
sudo pacman -Rs --noconfirm "$pkg" || true
done
echo
fi