I just do `yay -Syu` every week or so. What does `-Qtd` do?
Of course all's in the wiki, some useful links:
https://wiki.archlinux.org/title/System_maintenance https://wiki.archlinux.org/title/Pacman/Tips_and_tricks
> To list all packages no longer required as dependencies (orphans):
$ pacman -Qdt
[0] https://wiki.archlinux.org/title/Pacman`pacman -R -` will read names from stdin