Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cruft cleaning.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Wed Jul 12, 2006 5:18 am    Post subject: Cruft cleaning. Reply with quote

My Gentoo box has been running and updating for 2 years or so now. I started life on a 4Gb partition and was happy, but it's slowly increasing in size.

I've had to split off /usr/share binded into /opt. I had to split out /var into a new 2Gb partition.

Now my /opt and /var partitions (both 2Gb) are nearly full and there seems to be no end to it.

Other than reinstalling, is there any recommended ways to clean out a lot of the fluff, it can't possibly require 8Gb!

Cheers,

Paul
_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Wed Jul 12, 2006 5:36 am    Post subject: Reply with quote

Sure, first "rm -rf /var/tmp/portage/*". Its safe.

Then, look into /usr/src, and rm -rf every single kernel, except those that you really use. This things are not cleaned automatically, and the kernels install ALWAYS slotted. So, you might have a few of them.

Of course, I suppose that you hold /usr/portage into another partition, if not, you should. To have portage in the same usr or root partition is not good, cause of fragmentation. Appart of the huge size that /usr/portage/distfiles can reach.
Back to top
View user's profile Send private message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Wed Jul 12, 2006 6:05 am    Post subject: Reply with quote

Thing is, I already clean out both /var/tmp/portage/* and /usr/src/ and /tmp.

My /usr/portage is shared from the file server to 3 machines.

At the moment the largest directory is:
1785 /usr/lib

I found 1/2 a gig of space in tmp files today, so I'm okay for now, but it's a pain.

There must be stuff in there like old libraries no longer linked to and so on. There must be stuff that can be removed. I'm fairly sure if I rm'ed the whole lot, and remade my world on a fresh install it would take up less than half the space it does today.
_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum