View previous topic :: View next topic |
Author |
Message |
rickj Guru
Joined: 06 Feb 2003 Posts: 427 Location: Calgary, Alberta, Canada
|
Posted: Tue Sep 21, 2004 7:05 pm Post subject: A new location for junk... |
|
|
As well as all the above, the subdirectories under /var/cache/edb/dep slowly fill with obsolete junk related to old versions of packages. This directory can reach 100M on a system that has been updated many times. I'm not sure what creates it. Is it safe to delete the lot, and how would it be re-generated? |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Wed Sep 22, 2004 2:48 am Post subject: |
|
|
Pretty sure you don't want to mess with that directory. See this thread, and ciaranm's comments in particular.
Also, to keep this thread streamlined, I cleaned out some unnecessary posts.
EDIT: Fixed link. _________________ Quis separabit? Quo animo?
Last edited by pjp on Wed Sep 22, 2004 5:02 pm; edited 1 time in total |
|
Back to top |
|
|
rickj Guru
Joined: 06 Feb 2003 Posts: 427 Location: Calgary, Alberta, Canada
|
Posted: Wed Sep 22, 2004 4:08 pm Post subject: |
|
|
Thanks pjp, but you may have your link wrong - it doesn't seem relevant, and there's no post by ciaranm |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Wed Sep 22, 2004 5:02 pm Post subject: |
|
|
Fixed the link. The last digit of the thread # didn't get pasted. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
rickj Guru
Joined: 06 Feb 2003 Posts: 427 Location: Calgary, Alberta, Canada
|
Posted: Wed Sep 22, 2004 5:29 pm Post subject: |
|
|
So this is the portage cache which takes so long to update after an emerge sync? It still seems to be full of outdated cruft - any way to prune it? |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Wed Sep 22, 2004 5:53 pm Post subject: |
|
|
Not sure. Might be a thread on it already. If not, I'm sure its worthy of its own. I'll also add it to the FAQ entry for disk space (I recently updated it with info from this thread). _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
rickj Guru
Joined: 06 Feb 2003 Posts: 427 Location: Calgary, Alberta, Canada
|
Posted: Wed Sep 22, 2004 5:58 pm Post subject: |
|
|
I've looked at every disk space thread I could find, and saw no mention of this directory. Possibly portage emerge sync with AUTOCLEAN enabled might be enhanced to delete entries for which there is no corresponding file in /usr/portage/distfiles? |
|
Back to top |
|
|
rickj Guru
Joined: 06 Feb 2003 Posts: 427 Location: Calgary, Alberta, Canada
|
Posted: Wed Sep 22, 2004 6:23 pm Post subject: |
|
|
The good news is:
Code: |
triffid edb # du -s dep
65M dep
triffid edb # mv dep old_65M_dep
triffid edb # emerge sync
>>> /var/cache/edb/dep doesn't exist, creating it...
|
So if you delete the cache, portage will build you a nice sparkling new one on the next sync.
The bad news is:
Code: |
>>> Updating Portage cache... ...done!
triffid edb # du -s dep
66M dep
|
It is no smaller. So perhaps the portage team actually know what they are about, and all that apparent cruft is needed. Oh, well, it looked good while it lasted! |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Wed Sep 22, 2004 6:39 pm Post subject: |
|
|
This looks like one way to regenerate it. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
rickj Guru
Joined: 06 Feb 2003 Posts: 427 Location: Calgary, Alberta, Canada
|
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Wed Sep 22, 2004 7:02 pm Post subject: |
|
|
Yes, its mentioned on page 1. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
runlevel0 n00b
Joined: 09 Sep 2004 Posts: 67 Location: Mountains of Noord-Holland
|
Posted: Sat Oct 30, 2004 8:19 pm Post subject: Re: Free 100Mb+ of space!! |
|
|
My solution on my home network (3 boxes right now) was to centralize portage on one machine and exporting it via NFS to the other two...
Just mount the exports in it's directory or tell portage where to find them:
in /etc/make.conf :
PORTDIR="/path/to/portage"
DISTDIR="/path/to/portage/distfiles"
and remember to change the make.default link to the new one... _________________ --
]:O <-[Mooooooooooo!] |
|
Back to top |
|
|
Gruntboy50 n00b
Joined: 18 Jun 2004 Posts: 22
|
Posted: Wed Dec 29, 2004 8:31 pm Post subject: |
|
|
Great post. I was scratching my head why i was using way over 6 gigs. cleaning out the distfiles and the var folder really freed up diskspace. About 4 gigs worth! a few failed attempts at compiling open office and updating KDE did it for me. not to mention i cant help but wonder not having AUTOCLEAN="yes" contributed to my disk bloat. Thanks for the info. freed up lots of space |
|
Back to top |
|
|
Lucius_Agrippa n00b
Joined: 05 Sep 2005 Posts: 5
|
|
Back to top |
|
|
glober Tux's lil' helper
Joined: 20 Oct 2002 Posts: 77 Location: Vancouver, Canada
|
Posted: Sun Jul 02, 2006 8:29 pm Post subject: |
|
|
Strangely, I don't see any mention of this anywhere in the Forums, but I just reclaimed 2.5GB of space on my hard drive from deleteting files in a hidden Trash directory in the user directory: .local/share/Trash . The way I found out about it was using Kdirstat. And you probably say, Duh empty out your trash once in a while, but the thing is I have things set up to be deleted directly and not go to trash when I delete, so I never thought to look in the Trash, and yet there were all these files. So If you are running low on disk space or you delete files and df -h does not report any noticable improvement in space, check your Trash bin or .local/share/Trash .
Cheers |
|
Back to top |
|
|
clintpatty Apprentice
Joined: 21 Jul 2005 Posts: 173 Location: Alabama
|
Posted: Mon Jul 03, 2006 1:00 am Post subject: |
|
|
glober wrote: | 2.5GB of space on my hard drive from deleteting files in a hidden Trash directory in the user directory: .local/share/Trash . |
I do not have this folder. I think perhaps it is only on the more bloated desktop environments. |
|
Back to top |
|
|
glober Tux's lil' helper
Joined: 20 Oct 2002 Posts: 77 Location: Vancouver, Canada
|
Posted: Mon Jul 03, 2006 4:02 am Post subject: |
|
|
clintpatty wrote: | glober wrote: | 2.5GB of space on my hard drive from deleteting files in a hidden Trash directory in the user directory: .local/share/Trash . |
I do not have this folder. I think perhaps it is only on the more bloated desktop environments. |
KDE it is. It looks like this particular Trash location is related to Konqueror. I didn't see the stuff in there in Gnome trash. |
|
Back to top |
|
|
enderandrew l33t
Joined: 25 Oct 2005 Posts: 731
|
Posted: Sat Jul 08, 2006 8:58 am Post subject: |
|
|
One of my craptops only has 10 gigs of space. I know about autoclean /var/tmp/portage and /usr/portage/distfiles - however are there other folders I should be checking or cleaning out from time to time? _________________ Nihilism makes me smile. |
|
Back to top |
|
|
shazam75 Guru
Joined: 18 Mar 2006 Posts: 563 Location: Brisbane, Australia
|
Posted: Mon Jul 10, 2006 5:32 am Post subject: |
|
|
Kosmo wrote: | I thought it was more difficult to code, but this seems to work.
I have put this script in /etc/cron.daily, you may want to put it in weekly or something, hourly seems overkill to me
Comments are welcome
Code: |
#!/bin/sh
# Directory to check
dir=/usr/portage/distfiles/
# Maximum size directory should be in kilobytes
# DONT SET THIS TOO LOW
maxsize=500000
#-------------------------------------------------------
size=`du $dir | cut -f 1`
cd $dir
while [ "$size" -gt "$maxsize" ]
do
echo "about to delete something"
rm -R `ls --time=access --sort=time $dir | tail -1`
size=`du $dir | cut -f 1`
done
|
|
Thanks for this |
|
Back to top |
|
|
swann25 n00b
Joined: 04 Dec 2006 Posts: 50 Location: Bucharest, Romania
|
Posted: Mon Dec 04, 2006 10:44 am Post subject: Low disk space after emerge |
|
|
Hello...I know this problem was discussed several times but please be indulgent to me
I had 2.1 Gb free space on my disk.
I've ran "emerge world", got an error, re-emerged cairo with a flag reseted, revdep-rebuild and then "emerge --resume";
everything worked fine but now I have only 768 Mb free space.
With emerge world I've re-installed gtk, xine and amarok.
I have deleted /var/tmp/portage, /usr/portage/distfiles...now I have only 862 Mb.
Now :
du -sh /var/tmp/ccache/
893M /var/tmp/ccache/
du -sh /usr/portage
623M /usr/portage
is it ok if i delete /var/tmp/ccache?
what files should I look at?
Thank you. |
|
Back to top |
|
|
synss Apprentice
Joined: 08 Mar 2006 Posts: 282 Location: Dijon > Berlin > Tokyo > Nürnberg > München
|
Posted: Mon Dec 04, 2006 3:47 pm Post subject: Re: Low disk space after emerge |
|
|
swann25 wrote: | Hello...I know this problem was discussed several times but please be indulgent to me
I had 2.1 Gb free space on my disk.
I've ran "emerge world", got an error, re-emerged cairo with a flag reseted, revdep-rebuild and then "emerge --resume";
everything worked fine but now I have only 768 Mb free space.
With emerge world I've re-installed gtk, xine and amarok.
I have deleted /var/tmp/portage, /usr/portage/distfiles...now I have only 862 Mb.
Now :
du -sh /var/tmp/ccache/
893M /var/tmp/ccache/
du -sh /usr/portage
623M /usr/portage
is it ok if i delete /var/tmp/ccache?
what files should I look at?
Thank you. |
You would have had a better visibility in a new thread. Anyway, you can delete /var/tmp/ccache and even disable it or allow it lesser space (in /etc/make.conf) You may even try my "compress the portage tree thing" (check the link in the signature) to claim space in /usr/portage (but do not just get rid of /usr/portage, you would just either break your gentoo or download the full tree again next time you sync) _________________ Compress portage tree
Elog viewer
Autodetect swap |
|
Back to top |
|
|
|