Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No net - no gentoo?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
liku
n00b
n00b


Joined: 15 Jun 2003
Posts: 17
Location: Poland

PostPosted: Wed Feb 11, 2004 3:47 pm    Post subject: No net - no gentoo? Reply with quote

Hello,
Is there a way to use gentoo offline? Here's mine story:
I was lucky, last vacation I had ultra-fast internet connection and I could easly install and upgrade gentoo, evrything worked fine.
Problems occured when I had to move to a flat with no internet connection. Luckly I found a small howto how to upgrade packages offline, but it was very very old (2 years? Unfortunatelly I've lost the link quickly) and didn't work to well. I remembered I need to fetch files to upgrade (do it locally), download needed files and portage tree. But the trick with 'emerge -f' seems not to fetch all needed files (or I did something wrong) and I feel a bit confused about the 'tar xzf portage[...]' command. Is there a diffrence between the 'tar xfz [...]' command and 'emerge sync'? Does anyone know how to solve this problem? Or know the link which I lost (about doing upgrades offline) I have access to fast internet connection and I can download as many data as I wish, maybe there's a simple synchronisation script?
Recently I was on some linux meeting and I was said that if I want to use gentto I must have internet connection (and that gentoo was created for guys with access to internet), no internet = use binary packages. I don't belive it...
Thanks, I was supposed to write a simple synchronisation script but work and studies take all my time.
Bye bye!
_________________
Lukasz Goralczyk
http://sagittariusa.eu
Back to top
View user's profile Send private message
kmj0377
Guru
Guru


Joined: 26 Sep 2003
Posts: 397

PostPosted: Wed Feb 11, 2004 4:15 pm    Post subject: Reply with quote

You can get a portage snapshot here:
http://gentoo.chem.wisc.edu/gentoo/snapshots/
(this is on every mirror)
This will get your ebuilds up to date. Not sure on the fetch shortcut, but emerge --fetchonly yourpackage will get all the files. You can also look in the ebuilds for the files you need and get them directly from the mirrors manually. Or this thread shows how to get a list of files as well https://forums.gentoo.org/viewtopic.php?t=64178&highlight=offline+installation


Yes, there is a very big difference between tar xfz and emerge sync. One is for extracting a .tar.gz file and one is for updating your portage tree.
Back to top
View user's profile Send private message
secondshadow
Guru
Guru


Joined: 23 Jun 2003
Posts: 362

PostPosted: Wed Feb 11, 2004 4:20 pm    Post subject: Reply with quote

well first off emerge and tar do two very different things. You should know what emerge does; tar is an archiving utility. As for what you need to do, its pretty easy I would think. Heres an outline as I see it:

1) download most recent portage snapshot
2) un-tar snapshot (thats the tar -zxf thing...although it's actually tar -jxf in this case. And that - is important)
3) do 'emerge -pU world' or 'emerge -pUD world'
4) Note all the packages that need updating.
5) now, download all of the "distfiles" you need and put them in /usr/portage/distfiles. If it looks like there are patches for a specific package, you should probably download those too just in case you need them (they will be '.patch' files). They go in distfiles as well.
6) emerge -U world or emerge -UD world

A note:
The difference between -UD and -U is the 'D' checks the entire dependancy tree of all installed and to-be-update packages. I had a problem with -U not catching a dep and emerge failing, but then I tried -UD and the extra dep was caught, and thus it succeeded. I do know why its not default though, as I've seen other wierdnesses with it....mostly just while installing my base system...but thats another discussion.

If any single step need elaboration, let me know.

EDIT: Lol....kmj0337 beet me too it
Back to top
View user's profile Send private message
liku
n00b
n00b


Joined: 15 Jun 2003
Posts: 17
Location: Poland

PostPosted: Thu Feb 12, 2004 9:19 am    Post subject: Reply with quote

Hello,
Thanks, I should handle it now. Bye bye!
_________________
Lukasz Goralczyk
http://sagittariusa.eu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum