Package Details: pacman-log-orphans-hook 1.1-2

Git Clone URL: (read-only, click to copy)
Package Base: pacman-log-orphans-hook
Description: hook to check whether there are any packages marked as unrequired (orphans) via pacman -Qttdq after every pacman run
Upstream URL: None
Submitter: phiresky
Maintainer: phiresky
Last Packager: phiresky
Votes: 13
Popularity: 1.26
First Submitted: 2022-05-07 11:41 (UTC)
Last Updated: 2022-05-31 09:44 (UTC)

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

phiresky commented on 2023-03-19 17:33 (UTC)

Because they may be needed even if not marked as needed, see the pacman tips and tricks article in the wiki

RubenKelevra commented on 2022-07-25 14:30 (UTC)

Why not automate the removal? :)

Awebb commented on 2022-06-01 11:19 (UTC)

I stole it :-) and reduce the Exec line to:

Exec=/bin/bash -c 'orphans=$(pacman -Qqdt); if [[ ! -z "$orphans" ]]; then echo "$orphans"; fi'

I don't fancy verbosity for obvious things. Great idea, though!

phiresky commented on 2022-05-31 07:58 (UTC)

I've updated the hook to use -Qtdq

AlexanderStein commented on 2022-05-26 10:23 (UTC)

I agree, -Qtdq seems to be the more suitable choice.

ribugent commented on 2022-05-26 07:02 (UTC)


I've installed the hook because it's very useful in order to keep the system clean but if found a small inconsistency, when the hook is executed runs pacman -Qttdq, but in the shown message shows a different command to get and remove the orphans pacman -Qtdq | ... .

There are differences between the two lists, so running the command to remove the packages doesn't imply removing the message when running pacman on future occasions.

Personally, I find -Qtdq better because it doesn't list optional dependencies, so I'd like to suggest updating the parameters in the hook listing.

What do you think?