Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Free 100Mb+ of space!!
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Tue Sep 21, 2004 7:05 pm    Post subject: A new location for junk... Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20053

PostPosted: Wed Sep 22, 2004 2:48 am    Post subject: Reply with quote

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
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Wed Sep 22, 2004 4:08 pm    Post subject: Reply with quote

Thanks pjp, but you may have your link wrong - it doesn't seem relevant, and there's no post by ciaranm
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20053

PostPosted: Wed Sep 22, 2004 5:02 pm    Post subject: Reply with quote

Fixed the link. The last digit of the thread # didn't get pasted.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Wed Sep 22, 2004 5:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20053

PostPosted: Wed Sep 22, 2004 5:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Wed Sep 22, 2004 5:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Wed Sep 22, 2004 6:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20053

PostPosted: Wed Sep 22, 2004 6:39 pm    Post subject: Reply with quote

This looks like one way to regenerate it.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Wed Sep 22, 2004 6:50 pm    Post subject: Reply with quote

kerframil has a great script for crufting out /usr/portage/distfiles at:
https://forums.gentoo.org/viewtopic.php?t=3011
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20053

PostPosted: Wed Sep 22, 2004 7:02 pm    Post subject: Reply with quote

Yes, its mentioned on page 1.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
runlevel0
n00b
n00b


Joined: 09 Sep 2004
Posts: 67
Location: Mountains of Noord-Holland

PostPosted: Sat Oct 30, 2004 8:19 pm    Post subject: Re: Free 100Mb+ of space!! Reply with quote

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
View user's profile Send private message
Gruntboy50
n00b
n00b


Joined: 18 Jun 2004
Posts: 22

PostPosted: Wed Dec 29, 2004 8:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Lucius_Agrippa
n00b
n00b


Joined: 05 Sep 2005
Posts: 5

PostPosted: Fri Dec 02, 2005 2:40 pm    Post subject: Nice utillity for subj Reply with quote

http://www.marzocca.net/linux/baobab.html
Back to top
View user's profile Send private message
glober
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2002
Posts: 77
Location: Vancouver, Canada

PostPosted: Sun Jul 02, 2006 8:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
clintpatty
Apprentice
Apprentice


Joined: 21 Jul 2005
Posts: 173
Location: Alabama

PostPosted: Mon Jul 03, 2006 1:00 am    Post subject: Reply with quote

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
View user's profile Send private message
glober
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2002
Posts: 77
Location: Vancouver, Canada

PostPosted: Mon Jul 03, 2006 4:02 am    Post subject: Reply with quote

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
View user's profile Send private message
enderandrew
l33t
l33t


Joined: 25 Oct 2005
Posts: 731

PostPosted: Sat Jul 08, 2006 8:58 am    Post subject: Reply with quote

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
View user's profile Send private message
shazam75
Guru
Guru


Joined: 18 Mar 2006
Posts: 563
Location: Brisbane, Australia

PostPosted: Mon Jul 10, 2006 5:32 am    Post subject: Reply with quote

Kosmo wrote:
I thought it was more difficult to code, but this seems to work. :D
I have put this script in /etc/cron.daily, you may want to put it in weekly or something, hourly seems overkill to me :wink:

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 :D
Back to top
View user's profile Send private message
swann25
n00b
n00b


Joined: 04 Dec 2006
Posts: 50
Location: Bucharest, Romania

PostPosted: Mon Dec 04, 2006 10:44 am    Post subject: Low disk space after emerge Reply with quote

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
View user's profile Send private message
synss
Apprentice
Apprentice


Joined: 08 Mar 2006
Posts: 282
Location: Dijon > Berlin > Tokyo > Nürnberg > München

PostPosted: Mon Dec 04, 2006 3:47 pm    Post subject: Re: Low disk space after emerge Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
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