View previous topic :: View next topic |
Author |
Message |
The_Bell Apprentice
Joined: 01 Jul 2002 Posts: 157
|
Posted: Wed Jul 03, 2002 6:02 pm Post subject: Clean hard driver with emerge |
|
|
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 |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Wed Jul 03, 2002 6:02 pm Post subject: Re: Clean hard driver with emerge |
|
|
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 |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Wed Jul 03, 2002 6:33 pm Post subject: |
|
|
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 |
|
|
Sp4rky n00b
Joined: 10 Jul 2002 Posts: 15
|
Posted: Wed Jul 10, 2002 1:04 pm Post subject: automatically cleaning tmp/portage files... |
|
|
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 |
|
|
Chris W l33t
Joined: 25 Jun 2002 Posts: 972 Location: Brisbane, Australia
|
Posted: Wed Jul 10, 2002 1:28 pm Post subject: |
|
|
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 |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Wed Jul 10, 2002 1:59 pm Post subject: |
|
|
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 |
|
|
|