You are not logged in.

#1 2008-05-24 09:43:38

Mandalf
Member
Registered: 2007-07-02
Posts: 29

Clean up unused pakages

I have searched but i didn't find that function in pacman.

I searching for a function in pacman(or other program that usu pacman) to remove unsued packages.

Something like this:

root@Trillian:~# pacman --uninstall-unused
resolving dependencies...
looking for inter-conflicts...
Do you want to remove      Firefox        [Y/N]: N
Do you want to remove      Java           [Y/N]: Y
Do you want to remove      GIMP          [Y/N]: N

:: Removing...
Java [############################] 100%
root@Trillian:~#

I haven't made the application for this because i have not enough knowledge in programming.

Offline

#2 2008-05-24 09:47:29

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Clean up unused pakages

Can you define unused?


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#3 2008-05-24 09:47:44

abhidg
Member
From: City of Kol
Registered: 2006-07-01
Posts: 184
Website

Re: Clean up unused pakages

For a list of packages formerly installed as dependencies, but no longer in use by any currently installed packages (orphans):

pacman -Qdt

For a list of packages explicitly installed, but not required by any other package:

pacman -Qet

from: http://wiki.archlinux.org/index.php/Pacman

Offline

#4 2008-05-24 09:55:42

Mandalf
Member
Registered: 2007-07-02
Posts: 29

Re: Clean up unused pakages

dolby wrote:

Can you define unused?

Say... I installed audacity and it installed some deps.

Then I removed audacity, but I can't remember the names of the deps.

So the old deps for audacity is unused. I don't need them.

Offline

#5 2008-05-24 10:00:13

abhidg
Member
From: City of Kol
Registered: 2006-07-01
Posts: 184
Website

Re: Clean up unused pakages

use pacman -Qdt
also if you want to remove a package and all its related dependencies
which are not required by any other package:

pacman -Rs packagename

Offline

#6 2008-05-24 11:30:14

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 3,528

Re: Clean up unused pakages

Mandalf wrote:
dolby wrote:

Can you define unused?

Say... I installed audacity and it installed some deps.

Then I removed audacity, but I can't remember the names of the deps.

So the old deps for audacity is unused. I don't need them.

pacman -Rs audacity, optional -Rsc would have taken care of that.


Evil #archlinux@freenode channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2008-05-24 11:31:27

Mandalf
Member
Registered: 2007-07-02
Posts: 29

Re: Clean up unused pakages

Mr.Elendig wrote:
Mandalf wrote:
dolby wrote:

Can you define unused?

Say... I installed audacity and it installed some deps.

Then I removed audacity, but I can't remember the names of the deps.

So the old deps for audacity is unused. I don't need them.

pacman -Rs audacity, optional -Rsc would have taken care of that.

That was a nice idea... I will remember to use it.

Offline

#8 2008-05-24 11:36:03

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,604

Re: Clean up unused pakages

The pacman man page has all the details you need, including the options mentioned here.

Offline

#9 2010-03-17 22:30:41

psswrt
Member
Registered: 2010-01-25
Posts: 1

Re: Clean up unused pakages

you can use a script in bash

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

Offline

#10 2010-03-17 23:03:35

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,818

Re: Clean up unused pakages

http://wiki.archlinux.org/index.php/For … Bumping.27

You're most welcome to help out, but old topics are better left alone...


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB