You are not logged in.

#1 2010-03-31 17:19:30

Sly
Member
Registered: 2010-02-28
Posts: 40

Packages and Dependencies

Hey. So before I really know all of the pacman command variations I was installing apps and removing them without realised I'd need to remove all of their dependencies too. So now I have these dependencies that none of my applications require and they're unnecessarily taking up space.

So my question is, is there a way (command?) to remove all dependencies that are not used by any applications, without actually knowing which dependencies are not being used?

Cheers.

Last edited by Sly (2010-03-31 17:20:08)

Offline

#2 2010-03-31 17:24:45

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Packages and Dependencies

man pacman.  look at query options d and t.

by passing q as well, you can limit the list to just package names and pass the output to an additional pacman command to remove them.

Offline

#3 2010-03-31 18:12:02

davidoffbeat
Member
Registered: 2010-03-26
Posts: 2

Re: Packages and Dependencies

Like this:

# for i in `pacman -Qdt |awk '{print $1}'`; do sudo pacman -Rs $i; done

Regards.

Last edited by davidoffbeat (2010-03-31 18:16:27)

Offline

#4 2010-03-31 18:42:13

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Packages and Dependencies

davidoffbeat wrote:

Like this:

# for i in `pacman -Qdt |awk '{print $1}'`; do sudo pacman -Rs $i; done

Regards.

or pacman -Rs $(pacman -Qdtq)


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2010-03-31 18:52:56

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Packages and Dependencies

yeah, wonder's alias was the standard one i hoped you'd get to smile.  i have that aliased as 'pacorphans' and do run it time to time.

Offline

Board footer

Powered by FluxBB