Add clean orphan to update menu
This commit is contained in:
parent
cd3cc76b56
commit
49c078d81c
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,7 @@ if [ ! "$aurhelper" = "1" ]; then
|
||||||
fi
|
fi
|
||||||
options+=("Upgrade" "pacman -Syu")
|
options+=("Upgrade" "pacman -Syu")
|
||||||
options+=("Clean" "pacman -Sc")
|
options+=("Clean" "pacman -Sc")
|
||||||
|
options+=("Clean orphan" "pacman -Rns $(pacman -Qqtd)")
|
||||||
options+=("" "")
|
options+=("" "")
|
||||||
options+=("Edit pacman.conf" "")
|
options+=("Edit pacman.conf" "")
|
||||||
options+=("Edit mirrorlist" "")
|
options+=("Edit mirrorlist" "")
|
||||||
|
@ -81,6 +82,9 @@ case $sel in
|
||||||
sudo -u aurbuilder packer -Syu
|
sudo -u aurbuilder packer -Syu
|
||||||
;;
|
;;
|
||||||
'Clean') pacman -Sc;;
|
'Clean') pacman -Sc;;
|
||||||
|
'Clean orphan')
|
||||||
|
pacman -Rns $(pacman -Qqtd)
|
||||||
|
;;
|
||||||
'Edit pacman.conf') nano /etc/pacman.conf;;
|
'Edit pacman.conf') nano /etc/pacman.conf;;
|
||||||
'Edit mirrorlist') nano /etc/pacman.d/mirrorlist;;
|
'Edit mirrorlist') nano /etc/pacman.d/mirrorlist;;
|
||||||
'Remove db.lck') rm /var/lib/pacman/db.lck;;
|
'Remove db.lck') rm /var/lib/pacman/db.lck;;
|
||||||
|
|
Loading…
Reference in a new issue