View previous topic :: View next topic |
Author |
Message |
zbindere Guru
Joined: 27 May 2004 Posts: 356 Location: Switzerland
|
Posted: Tue Jun 22, 2004 9:21 pm Post subject: my fat gentoo |
|
|
my gentoo partition grows and grows.
Code: | Filesystem Size Used Avail Use% Mounted on
/dev/hda6 5.6G 3.4G 2.3G 61% /
none 507M 0 507M 0% /dev/shm |
I "only" installed gnome and some desktop applications. but I think I have never installled 3.4G of software.
does portage caching downloaded files?
can I delete the files
Code: | /usr/portage/disfiles |
if yes this makes only 300MB. where else can I delete. does someone has maybe a nice houskeeping script? |
|
Back to top |
|
|
catzooka Apprentice
Joined: 05 Nov 2002 Posts: 193
|
Posted: Tue Jun 22, 2004 9:57 pm Post subject: |
|
|
yeah, /usr/portage/distfiles is where all the downloaded files are kept, which you can feel free to delete. Also, you can remove the contents of /var/tmp/portage/; however, DO NOT do that when you're in the middle of emerging something (since thats the place where portage stores its temporary files during emerging). Also, you may want to check if you have multiple kernel sources installed. If so, those do claim a bunch of disk space. Those are definitly the three places I'd take a look to free up some disk space... |
|
Back to top |
|
|
farrioth Apprentice
Joined: 23 Nov 2003 Posts: 282 Location: Auckland
|
Posted: Tue Jun 22, 2004 10:00 pm Post subject: |
|
|
Try Ecatmur'sfilesystem cruft script.
It is fine to remove distfiles, but if you do, you will have to re-download them if you want to emerge that package again.
There are probably some large files hidden somewhere that are taking up disk space.
|
|
Back to top |
|
|
g3n Guru
Joined: 13 Dec 2003 Posts: 543 Location: México
|
Posted: Wed Jun 23, 2004 12:23 am Post subject: |
|
|
You should also give a look to /var/tmp/portage _________________ --[G]-- |
|
Back to top |
|
|
tawtao Tux's lil' helper
Joined: 29 Sep 2003 Posts: 116 Location: Baltimore
|
Posted: Wed Jun 23, 2004 12:50 am Post subject: |
|
|
If you worry about running out the root partition space, you can move your portage directory from root partition to other partition that you have a lot of space.
I moved the portage directorty to /home and I created a link to /usr. It work just fine. |
|
Back to top |
|
|
NewBlackDak Guru
Joined: 02 Nov 2003 Posts: 512 Location: Utah County, UT
|
Posted: Wed Jun 23, 2004 1:48 am Post subject: |
|
|
Code: |
#cleanup
!#/bin/bash
RUN=`ps -e| grep emerge`
if [ "$RUN" = "" ] ; then
echo "Cleaning up portage."
rm -rf /usr/portage/distfiles/*
rm -rf /var/tmp/portage/*
else
echo "Emerge is running,cannot clean up."
fi
unset RUN
exit 0 |
I have that saved in /usr/bin/cleanup, and it's cron'd every night. _________________ Gentoo systems.
X2 4200+@2.6 - Athy
X2 3600+ - Myth
UltraSparc5 440 - sparcy |
|
Back to top |
|
|
|