Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Clean hard driver with emerge
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
The_Bell
Apprentice
Apprentice


Joined: 01 Jul 2002
Posts: 157

PostPosted: Wed Jul 03, 2002 6:02 pm    Post subject: Clean hard driver with emerge Reply with quote

Emerge seems to save on the HD the .tar.gz files it downloads even after having the software compiled and installed. Is there anything I can do to "clean" all those unneeded packages? (whenever I want they are in the internet to download).

Thanks
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Wed Jul 03, 2002 6:02 pm    Post subject: Re: Clean hard driver with emerge Reply with quote

You can delete stuff in:
Code:

/var/tmp/portage
/usr/portage/distfiles

to reclaim space.

The_Bell wrote:
Emerge seems to save on the HD the .tar.gz files it downloads even after having the software compiled and installed. Is there anything I can do to "clean" all those unneeded packages? (whenever I want they are in the internet to download).

Thanks
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Wed Jul 03, 2002 6:33 pm    Post subject: Reply with quote

Though, note that when you go to update your system, it will have to download everything again, even for the same version with a different ebuild (-r something). You probably want to save some packages, such as the linux-sources tarball and maybe XFree.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
Sp4rky
n00b
n00b


Joined: 10 Jul 2002
Posts: 15

PostPosted: Wed Jul 10, 2002 1:04 pm    Post subject: automatically cleaning tmp/portage files... Reply with quote

Oke,

but if I want to build my whole system again from the tar.gz files, the problem is, that the tmp dir isn't cleaned after a succesfull build of a package

Since i'm only on a 2 Gb disk with 1 gb free (running Xfree4 with fluxbox, no big desktopshit, XP was invented for that) I run out of space during an install

Even openoffice won't compile since 1 Gb of free space isn't enough for unpacking source and compiling (3 Gb according to the faq, are they nuts!?). The next morning I'll find my machine with a failed build and a 100% used drive

Is there a way (i checked the portage doc's) that the tmp dir is cleaned after a succesfull build?

Ruud

[EDIT] Perhaps I should try to set the --autoclean option manually, allthough it should be enabled by default [/EDIT]
_________________
| Asus A7M266-D | dual XP2400+ t-bred | 1024Mb PC2100 REG ECC | Geforce4 Ti4600 |
| 3Ware 7006-2 | 2x WD800JB | LiteOn LTR-48125w | HEC-425VD-PT power |
Back to top
View user's profile Send private message
Chris W
l33t
l33t


Joined: 25 Jun 2002
Posts: 972
Location: Brisbane, Australia

PostPosted: Wed Jul 10, 2002 1:28 pm    Post subject: Reply with quote

The /var/tmp/portage/* directories, while numerous, occupy little space. The bulk of their content is cleaned up after a package emerge. On my machine:
Code:
$ du -sk /var/tmp/portage
4948    /var/tmp/portage

$ ls -1 /var/tmp/portage/ | wc -l
    204
$


There's a script or two in the Tips & Tricks forum (Cleaning out stale distfiles) to help clean up unused distribution files from /usr/portage/distfiles. Beware though, it is far from perfect, and should not be trusted blindly.
_________________
Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Wed Jul 10, 2002 1:59 pm    Post subject: Reply with quote

A failed (or aborted) emerge leaves a lot of junk behind. If you do:
Code:

du -sk /var/tmp/portage/* | sort +0n

You will see the offenders at the end of the list.

Chris W wrote:
The /var/tmp/portage/* directories, while numerous, occupy little space...
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