[gentoo-user] Is this possible ? (Emerge)

2006-03-25 Thread Meino Christian Cramer
Hi,

 may be this is already possible and I am only repeating a very old
 idea, but...

 When emerging applikations, which are not already in the system, the
 sources wll be downloaded from the net into /usr/portage/distfiles/.

 Over the time, this directory will grow.

 Is it possible to instruct emerge to search for already downloaded
 archives in two directories but write only to one directory?

 This would enable the following:

 Say, the distfiles directory of system will take about 800MB of
 space. Now one would be able to store/backup this stuff onto a CD
 and mount this this CD under /usr/portage/distfiles_cd.

 When emerging a new applikation, emerge will first look under
 /usr/portage/distfiles_cd nad -- if not found -- under (for example)
 /usr/portage/distfiles_new and if not found will download the archive
 of this applikation to /usr/portage/distfiles_new.

 When /usr/portage/distfiles_new becomes too big, one will combine the
 contents of /usr/portage/distfiles_cd and /usr/portage/distfiles_new
 again and burn the result onto a cd, which can be mounted under
 /usr/portage/distfiles_cd again. And so on.

 Would save a lot of space under / of files, which are used not so
 often.

 Is this already be possible or is this an idea may be?

 Keep hacking!
 mcc
 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Is this possible ? (Emerge)

2006-03-25 Thread Gabriel Dain
the DISTDIR variable in make.conf does exactly that. You could make a
(relatively) simple script to change its value whenever needed.

Gabriel Dain

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Is this possible ? (Emerge)

2006-03-25 Thread Neil Bothwick
On Sat, 25 Mar 2006 13:49:35 +0100 (CET), Meino Christian Cramer wrote:

  Is it possible to instruct emerge to search for already downloaded
  archives in two directories but write only to one directory?
 
  This would enable the following:
 
  Say, the distfiles directory of system will take about 800MB of
  space. Now one would be able to store/backup this stuff onto a CD
  and mount this this CD under /usr/portage/distfiles_cd.

echo local /media/cdrom/distfiles /etc/portage/mirrors

man portage for more detail.


-- 
Neil Bothwick

HTTP: Helps Transfer The Porn


signature.asc
Description: PGP signature