4 ms·
I just do `yay -Syu` every week or so. What does `-Qtd` do?
by cranberryturkey 2y ago
I just do `yay -Syu` every week or so. What does `-Qtd` do?
- basemi 2y agoFrom [0]: > To list all packages no longer required as dependencies (orphans): $ pacman -Qdt [0] https://wiki.archlinux.org/title/Pacman https://wiki.archlinux.org/title/Pacman
- cranberryturkey 2y agoThat just lists them, how do you remove them?
- denysvitali 2y ago`sudo pacman -R $(pacman -Qtd | awk '{print $1}')` ?
- Am4TIfIsER0ppos 2y ago`pacman -Qtdq` will list the package names `pacman -R -` will read names from stdin
- timetraveller26 2y agoSame, also the ocassional paccache (https://wiki.archlinux.org/title/Pacman#Cleaning_the_package_cache https://wiki.archlinux.org/title/Pacman#Cleaning_the_package...). I think -Qtd list orphaned packages. Of course all's in the wiki, some useful links: https://wiki.archlinux.org/title/System_maintenance https://wiki.archlinux.org/title/System_maintenance https://wiki.archlinux.org/title/Pacman/Tips_and_tricks https://wiki.archlinux.org/title/Pacman/Tips_and_tricks