View previous topic :: View next topic |
Author |
Message |
mark4gentoo n00b
Joined: 29 Nov 2005 Posts: 38
|
Posted: Thu Dec 08, 2005 7:55 am Post subject: Emerging from another place |
|
|
Hello,
my internet connection at home is very poor (slow UMTS ).
Is there a way to download packages from university and emerge them on my system at home. Somebody told me to download the tar files and to copy them into the portage. But how exactly does this work, and does this have any disadvantages, is there some kind of "official" gentoo documentation covering this issue?
Tanks a lot! |
|
Back to top |
|
|
davidgurvich Veteran
Joined: 23 Apr 2004 Posts: 1063
|
Posted: Thu Dec 08, 2005 8:13 am Post subject: |
|
|
Just make sure you have the correct version of the tar files. You won't need every file as you have a connection, so anything you miss can be downloaded, but you should read the ebuild files in /usr/portage to find out which version you need.
Generic example
1)Pretend to fetch the files
emerge mypackage -fp >> filelist.txt
That will give you a list of the files you need along with where you might get them.
It includes any files portage feels you might need.
2)Download them from the computer with a faster connection
wget .....
3)Copy them to the /usr/portage/distfiles directory
cp /path/to/files/* /usr/portage/distfiles
4)emerge mypackage
If you got the biggest files this should help, but you will still need to compile everything. |
|
Back to top |
|
|
mark4gentoo n00b
Joined: 29 Nov 2005 Posts: 38
|
Posted: Thu Dec 08, 2005 8:16 am Post subject: |
|
|
Thanks a lot! Did you try this yourself? Are there any shortcomes with this method? |
|
Back to top |
|
|
Fourbissime n00b
Joined: 24 May 2003 Posts: 60
|
Posted: Thu Jul 13, 2006 9:12 am Post subject: |
|
|
hi.
I'm currently using this method to download packages at work - here are a few more hints.
It seems that when you do emerge -fp myebuild, the addresses go out on error output or something like that. plus, copy/paste the whole thing won't directly work. If an ebuild has several sources, all sources are printed - so it tries to download it several time if you don't edit the file.
That would be a great portage option to directly generate a proper wget output ... |
|
Back to top |
|
|
derverstand Guru
Joined: 15 Dec 2005 Posts: 511 Location: /dev/null
|
Posted: Wed Aug 02, 2006 5:48 pm Post subject: |
|
|
Hi Mark,
Recently I wrote a script for my cluster to fetch a complete mirror. The main problem with using gentoo offline is: A common gentoo mirror doesn't contain all sources. There are external dependecies (i.e. xorg.7). So if you want to use gentoo offline, you got to
(1) rsync a portage
(2) rsync a gentoo mirror
(3) parse all ebuilds in the downloaded portage, and check for external files
(4) setup make.conf (portage- and distfiles-source)
Best regards! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54391 Location: 56N 3W
|
Posted: Wed Aug 02, 2006 6:14 pm Post subject: |
|
|
mark4gentoo,
You need sneakernet _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|