View previous topic :: View next topic |
Author |
Message |
dtun3Z n00b
Joined: 30 Apr 2002 Posts: 63
|
Posted: Fri May 17, 2002 7:33 am Post subject: old distfiles |
|
|
Hi!
After installing a lot of portages, and updating them a lot of "old" distfiles will stay in the distfiles directory.
f.x if i install foobar-0.2 then foobar-0.2.tar.bz2 will be in /usr/portage/distfiles. But if foobar-0.3 is out, and portages gets updated then foobar-0.3.tar.bz2 also will be in distfiles. then i dont need foobar-0.2.tar.bz2.
is there a way to delete unused distfiles automaticly? (not the manual way) _________________ Best regards
Christer Gundersen / dizzy tun3Z
http://dtz.cjb.net |
|
Back to top |
|
|
474 l33t
Joined: 19 Apr 2002 Posts: 714
|
Posted: Fri May 17, 2002 7:35 pm Post subject: Yes ... |
|
|
Yes, with a suitable script! I'm working on one, and it will be posted in the Tips'n'Tricks section when I've finished. |
|
Back to top |
|
|
dArkMaGE Apprentice
Joined: 20 Apr 2002 Posts: 152
|
Posted: Fri May 17, 2002 8:17 pm Post subject: |
|
|
but be careful, you dont want to spend all those hours downloading kde or gnome, compile it, and then wipe out your distfiles only to find out a new revision of (kde/gnome/?) has been released, causing you to download the whole mess all over again when you try to update. |
|
Back to top |
|
|
stroke n00b
Joined: 13 May 2002 Posts: 36 Location: Italy
|
Posted: Fri May 17, 2002 9:16 pm Post subject: distfiles cleaning... |
|
|
I'm not pretty sure about this one but:
I've noticed that if I delete a particular tarball (in /usr/portage/distfiles)
of a package that is built and installed already, and then do an
emerge thatpackage well portage begins to compile and build again
that package.
This is happening with the same package version number.
eg: I do emerge package
package-1.0 gets compiled and installed
I rm /usr/portage/distfiles/package-1.0.tar.gz
I do emerge package again
package-1.0 is being re-downloaded, re-compiled, re-installed once again.
Is this the correct behaviour ? |
|
Back to top |
|
|
proxy Apprentice
Joined: 20 Apr 2002 Posts: 260 Location: Chantilly, VA
|
Posted: Fri May 17, 2002 9:53 pm Post subject: |
|
|
well yea, when you emerge the second time you saying "install it again", so it will download the sources and compile it for a fresh install.
proxy |
|
Back to top |
|
|
TheWart Guru
Joined: 10 May 2002 Posts: 432 Location: Nashville,TN - USA
|
Posted: Sat May 18, 2002 2:59 am Post subject: |
|
|
In order to get aroud this, leave the download there, and it will not re-download it unless it is a major update rather than an alteration to the ebuild. But, you do lose some space, so it all depends on your diskspace and internet connection _________________ Face it, we are all noobs.
On the box it said it was designed for Win XP or better, so why won't it work with Linux? |
|
Back to top |
|
|
stroke n00b
Joined: 13 May 2002 Posts: 36 Location: Italy
|
Posted: Sat May 18, 2002 11:48 am Post subject: |
|
|
Quote: | But, you do lose some space, so it all depends on your diskspace and internet connection |
They are both laughable
56k and a not big enought HD. |
|
Back to top |
|
|
balk n00b
Joined: 10 Apr 2002 Posts: 62 Location: Olanda
|
Posted: Sat May 18, 2002 12:41 pm Post subject: |
|
|
stroke wrote: | Quote: | But, you do lose some space, so it all depends on your diskspace and internet connection |
They are both laughable
56k and a not big enought HD. |
you can burn the large ones on cd (QT, kernel sources, LaTeX, emacs, X) and mount it when needed. You can also recover space by emptying /var/tmp/portage after every compilation. Deleting some locales (I do not need the Italian locales at all so why keep them? ) and manpages can also save space. _________________ Powered by Gentoo since 1.0_rc6 |
|
Back to top |
|
|
stroke n00b
Joined: 13 May 2002 Posts: 36 Location: Italy
|
Posted: Sat May 18, 2002 3:51 pm Post subject: |
|
|
Thank you for the good tips ....
Quote: | (I do not need the Italian locales at all so why keep them? icon_biggrin.gif ) |
I don't need Italian locales either, even if my english is not that good |
|
Back to top |
|
|
474 l33t
Joined: 19 Apr 2002 Posts: 714
|
Posted: Tue May 21, 2002 8:45 pm Post subject: Here's a script that will clean out stale distfiles ... |
|
|
OK, the script is ready - check out https://forums.gentoo.org/viewtopic.php?t=3011. BTW, dArkMaGe - I have heeded your sage advice, the script will not delete the most current instance of any tarball, only stale ones. Any suggestions for improvements are welcome (I can think of plenty already) ...
EDIT: We also have a FAQ now. --pjp |
|
Back to top |
|
|
|