Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/usr is at 97%
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
fusion1275
Apprentice
Apprentice


Joined: 30 Oct 2005
Posts: 185

PostPosted: Wed Aug 29, 2007 4:32 pm    Post subject: /usr is at 97% Reply with quote

Hey all,

My /usr directory is slowly creeping up. Any ideas on what is good to clear down? I just wanted to clear it with you pro's before I make my whole system die on its ass! :D

Cheers
_________________
AMD XP 2600+
Mem: 1gb
Disk1: 60gb
Disk2: 250gb
Disk3: 250gb
Kernel: 2.6.19-r5
KDE: 3.5.5
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Wed Aug 29, 2007 4:45 pm    Post subject: Reply with quote

`du -hs /usr/portage/distfiles`?

Also, `du -chs /usr/src/*`?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
OrangeToque
n00b
n00b


Joined: 03 Apr 2006
Posts: 57
Location: Edmonton, Alberta, Canada

PostPosted: Wed Aug 29, 2007 4:46 pm    Post subject: Reply with quote

You can safely delete the contents of the directory::
Code:
/usr/portage/distfiles/

This is the place where portage saves all of its downloaded files (source code, binaries, etc.). These files are safe to delete as portage will just re-download them if it needs them.

Another potential culprit are old kernel versions installed in::
Code:
/usr/src/

To delete these I would recommend first checking your system to see which kernel you are actively using::
Code:
uname -r

Then simply remove any that are superfluous through emerge ::
Code:
emerge -C =gentoo-source-2.x.x.x

where 2.x.x.x is the version you wish to delete... or
Code:
'emerge -C <gentoo-source-2.x.x.x'

where 2.x.x.x is your current version.

Once emerge has finished, the actual kernel directories can be removed from /usr/src.

Good luck!
_________________
OS: Linux 2.6.24-gentoo-r3 x86_64 Gentoo v1.12.11.1 Sound: HDA Intel
CPU: Intel(R) Core(TM)2 Quad CPU Q6700 @ 2.66GHz GenuineIntel
Disk: 2x 300GB 7200.10 SATA II Video: GeForce 7900 GT RAM: 4GB
Back to top
View user's profile Send private message
fusion1275
Apprentice
Apprentice


Joined: 30 Oct 2005
Posts: 185

PostPosted: Wed Aug 29, 2007 4:47 pm    Post subject: Reply with quote

2.0G /usr/portage/distfiles/
_________________
AMD XP 2600+
Mem: 1gb
Disk1: 60gb
Disk2: 250gb
Disk3: 250gb
Kernel: 2.6.19-r5
KDE: 3.5.5
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Aug 29, 2007 4:48 pm    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads.
See here
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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