Removing orphan packages with Pacman

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: , , , ,

Advertisement

3 thoughts on “Removing orphan packages with Pacman

  1. 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.

  2. Pingback: Remove orphaned packages in Arch Linux « krisRowland.bLog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s