From 49c078d81c9acedae904f7d25810ae52df19fc7b Mon Sep 17 00:00:00 2001 From: MatMoul Date: Mon, 11 Jan 2016 20:13:50 +0100 Subject: [PATCH] Add clean orphan to update menu --- updates/menu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/updates/menu b/updates/menu index 0fa10c0..73effaa 100644 --- a/updates/menu +++ b/updates/menu @@ -17,6 +17,7 @@ if [ ! "$aurhelper" = "1" ]; then fi options+=("Upgrade" "pacman -Syu") options+=("Clean" "pacman -Sc") +options+=("Clean orphan" "pacman -Rns $(pacman -Qqtd)") options+=("" "") options+=("Edit pacman.conf" "") options+=("Edit mirrorlist" "") @@ -81,6 +82,9 @@ case $sel in sudo -u aurbuilder packer -Syu ;; 'Clean') pacman -Sc;; + 'Clean orphan') + pacman -Rns $(pacman -Qqtd) + ;; 'Edit pacman.conf') nano /etc/pacman.conf;; 'Edit mirrorlist') nano /etc/pacman.d/mirrorlist;; 'Remove db.lck') rm /var/lib/pacman/db.lck;;