summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-04-02 02:17:18 -0700
committerXiao Pan <gky44px1999@gmail.com>2024-04-02 02:17:18 -0700
commit9b0a78ef465bb21aab5884ea289f9441ce6fb8f6 (patch)
treebd70ff0df556b2fc309ba9e51772614d976e711b /sh
parente62ee8ba1d5d783f29c9b30101b8ba68874c6b12 (diff)
monthly remove orphan packages
Diffstat (limited to 'sh')
-rwxr-xr-xsh/upd3
1 files changed, 3 insertions, 0 deletions
diff --git a/sh/upd b/sh/upd
index ac78b6c..4804de9 100755
--- a/sh/upd
+++ b/sh/upd
@@ -107,6 +107,9 @@ clean () {
fi
paru -aSc --noconfirm
+
+ # https://wiki.archlinux.org/title/Pacman/Tips_and_tricks#Removing_unused_packages_(orphans)
+ pacman -Qdttq | sudo pacman -Rns --noconfirm -
}
# basic daily stuff