Overclockers Australia Forums
OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Software Topics > Other Operating Systems

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 23rd September 2002, 2:20 PM   #1
farkenhell Thread Starter
Member
 
farkenhell's Avatar
 
Join Date: Dec 2001
Location: London
Posts: 214
Default Gentoo and Portage

I have two gentoo systems and don't want to download packages twice. Is it possible to either set one machine as a small package mirror or to copy the package files to the other system and use portage to install them? If so, how?

I've done some googling on this, but didn't find anything

Thanks
farkenhell is offline   Reply With Quote

Join OCAU to remove this ad!
Old 23rd September 2002, 2:28 PM   #2
Quadbox
Member
 
Quadbox's Avatar
 
Join Date: Jun 2001
Location: Brisbane 4065
Posts: 5,088
Default Re: Gentoo and Portage

Quote:
Originally posted by farkenhell
I have two gentoo systems and don't want to download packages twice. Is it possible to either set one machine as a small package mirror or to copy the package files to the other system and use portage to install them? If so, how?

I've done some googling on this, but didn't find anything

Thanks
Set up one of the machines as an nfs (or samba) server, sharing the /usr/portage/distfiles directory.

Mount this share on the other machine as /usr/portage/distfiles. Done.

Alternatively, mount it as another directory, and 'export DISTDIR="/path/to/share"' <-- Add this to your profile. (I think that is the env variable. Check the portage manual, to be sure).

Either of those methods should work fine. Thus, after either of the computers emerges the package, it will be in the common portage cache, and the next computer won't download it again.
Quadbox is online now   Reply With Quote
Old 23rd September 2002, 2:30 PM   #3
Jacaranda
Member
 
Jacaranda's Avatar
 
Join Date: Jun 2002
Location: Brisbane
Posts: 920
Default

look on the gentoo forums

all the packages (unless you've deleted them) are stored on your hardrive, you can point you other installation at this directory. distfiles or somewhere near there.

You can of course simply copy them accross as well, there are a couple other things you need to do. But I don't remember of hand, see first comment.
__________________
Jac

The liver is evil and must be punished.
Jacaranda is offline   Reply With Quote
Old 23rd September 2002, 2:37 PM   #4
farkenhell Thread Starter
Member
 
farkenhell's Avatar
 
Join Date: Dec 2001
Location: London
Posts: 214
Default

Ah, many thanks for your answers.
farkenhell is offline   Reply With Quote
Old 23rd September 2002, 2:53 PM   #5
Somefella
Member
 
Join Date: Sep 2001
Location: NSW
Posts: 1,501
Default Re: Re: Gentoo and Portage

Quote:
Originally posted by Quadbox


Set up one of the machines as an nfs (or samba) server, sharing the /usr/portage/distfiles directory.

Mount this share on the other machine as /usr/portage/distfiles. Done.

Alternatively, mount it as another directory, and 'export DISTDIR="/path/to/share"' <-- Add this to your profile. (I think that is the env variable. Check the portage manual, to be sure).

Either of those methods should work fine. Thus, after either of the computers emerges the package, it will be in the common portage cache, and the next computer won't download it again.
Just another reason why portage\gentoo rocks your world.
Somefella is offline   Reply With Quote
Old 23rd September 2002, 3:58 PM   #6
Quadbox
Member
 
Quadbox's Avatar
 
Join Date: Jun 2001
Location: Brisbane 4065
Posts: 5,088
Default Re: Re: Re: Gentoo and Portage

Quote:
Originally posted by Somefella


Just another reason why portage\gentoo rocks your world.
The cache is a very handy feature. Tip #2:

When doing a clean install, burn all your distfiles directory to a couple of cd's. In the installation, just before chrooting to /mnt/gentoo, mount the cd's in turn, and copy all the files to /mnt/gentoo/usr/portage/distfiles.

Net result: The installation downloads precisely zip. (excluding the rsync step, obviously).
Quadbox is online now   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 10:53 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!