You are not logged in.

#1 2008-04-13 06:28:25

sense
Member
From: Bangalore, India
Registered: 2007-10-24
Posts: 12
Website

Clean up the system

I have been using Archlinux for almost a year now. I started to notice that my root filesystem size has been increasing. It now stays at 6GB. I wanted to know if there are any ways of cleaning up the system of leftover files.

I asked in irc and read in newsletter about pacman -Qdt and removed all orphan files. I still cant believe 6GB has been filled. Is it possible for pacman to list the packages in the order of decreasing size?

Have anybody faced a problem like this ? What should be the approach to cleanup the sytem?


There is no reason

Offline

#2 2008-04-13 06:33:44

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: Clean up the system

Maybe you have a lot of old files in your package cache.  Try a "pacman -Sc" to remove old packages and a "pacman -Scc" to remove all pacakges from your cache.

Offline

#3 2008-04-13 06:43:17

sense
Member
From: Bangalore, India
Registered: 2007-10-24
Posts: 12
Website

Re: Clean up the system

That cleaned up 300MB. It seems I have installed a *lot* of packages. Can pacman output the packages in the order of decreasing size?

Oops, or is any other approach ?


There is no reason

Offline

#4 2008-04-13 07:26:51

SiD
Member
From: Germany
Registered: 2006-09-21
Posts: 729

Re: Clean up the system

pacman -Qet

lists packages that were installed explicity and are not required by any other package.
Maybe you find some packages you don't need anymore this way.

Offline

#5 2008-04-13 08:47:45

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Clean up the system

sense wrote:

That cleaned up 300MB. It seems I have installed a *lot* of packages. Can pacman output the packages in the order of decreasing size?

pacman can't, but there are many ways to do it. A simple script using pacman, or using directly /var/lib/pacman, or a tool using libalpm.
http://bbs.archlinux.org/viewtopic.php? … 78#p320678


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#6 2008-04-13 08:59:45

sense
Member
From: Bangalore, India
Registered: 2007-10-24
Posts: 12
Website

Re: Clean up the system

Whoa! I removed all those packages that were'nt used, and now, the root filesystem size is 3.9GB. Yay! thanks.:cool:


There is no reason

Offline

Board footer

Powered by FluxBB