Add remove orphans in pacman new orphan hook
This commit is contained in:
parent
2bf0c788f8
commit
140e2f646e
1 changed files with 1 additions and 1 deletions
|
@ -8,4 +8,4 @@ Target = *
|
|||
[Action]
|
||||
Description = Checking if a transaction orphaned a package...
|
||||
When = PostTransaction
|
||||
Exec = /usr/bin/bash -c "/usr/bin/pacman -Qtd || /usr/bin/echo '=> None found.'"
|
||||
Exec = /usr/bin/bash -c "/usr/bin/pacman -Qtd && /usr/bin/pacman -Rns $(/usr/bin/pacman -Qdtq) || /usr/bin/echo '=> None found.'"
|
||||
|
|
Loading…
Add table
Reference in a new issue