A quick Arch tip : Get the list of orphan packages (packages no longer needed by any other packages) in pacman by with
pacman -Qtdq
Then remove the packages using :
pacman -Rc package_name
Edit: Thanks JohnCC for correcting me.
Blogged with Flock
Tags: arch, pacman, linux, packages, cleanup
Advertisement
Since this comes up high on Google for “pacman remove orphans” I should point out that it’s totally wrong. “pacman -Qe” gives you a list of all explicitly installed packages.
The correct command would probably be “pacman -Qtdq”. See the Arch wiki.
Here you go: pacman -Rs $(pacman -Qqtd)
Pingback: Remove orphaned packages in Arch Linux « krisRowland.bLog