Remove orphaned packages in Arch Linux
by krisrowland
A one-liner to removed orphaned packages and their dependencies that aren’t required by other packages:
pacman -Rs $(pacman -Qqtd)
$(pacman -Qqtd) provides a list of orphaned packages.
-Rs removed these packages and their dependencies that aren’t required by other packages.
From Phlogi: second reply here.
Nice ^_^
Advertisement