Or in other words: Don’t kick the can down the road. Definitely the right course of action.
But why did I ask my initial question? I thought about it and the reason is that the pure list given by pacman -Qdtq
is not giving any information about these packages, just the names.
For my purposes, I use expac -Q "\e[1m%n\e[0m\n%d" $(pacman -Qdtq)
to see not only the package names, but also their description.
This helps to see if the orphaned package is, for example, a font which I used somewhere, or the CLI part of a GUI application where I used the CLI, but never the GUI and uninstalled the GUI part. I had both things in the past on my systems and removing the orphans gave me issues later on.
Maybe this is a separate script waiting to be written, which would include
But you could always include it in the existing script.