Unix Technical Forum

how to update portage without internet access?

This is a discussion on how to update portage without internet access? within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> hi all, i installed gentoo in january this year on my box and i'm very happy with it. because ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 11:05 AM
hot_rage
 
Posts: n/a
Default how to update portage without internet access?

hi all,

i installed gentoo in january this year on my box and i'm very happy with
it. because i don't have internet access at home i still have portage
dating january the 18th or about.

is there an easy way to update portage without internet access??

when i need to install a new package i do a:

emerge --fetchonly --pretend --verbose <packagename>

and download the necessary files at work. that's no problem, but how to
do that with portage?

one idea would be to download the portage-snapshot and simply untar it on
my box.

would this be a propper way ?? don't want to kill anything on my box


--
hot_rage
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 11:05 AM
Peter Jensen
 
Posts: n/a
Default Re: how to update portage without internet access?

hot_rage wrote:

> i installed gentoo in january this year on my box and i'm very happy
> with it. because i don't have internet access at home i still have
> portage dating january the 18th or about.
>
> is there an easy way to update portage without internet access??
>
> when i need to install a new package i do a:
>
> emerge --fetchonly --pretend --verbose <packagename>
>
> and download the necessary files at work. that's no problem, but how
> to do that with portage?
>
> one idea would be to download the portage-snapshot and simply untar it
> on my box.
>
> would this be a propper way ?? don't want to kill anything on my box


Taking a look at /usr/sbin/emerge-webrsync provides some hints to the
proper procedure. This is what it basically does:

1. Download portage snapshot somewhere temporary.
2. Untar that snapshot (still in temporary location).
3. 'cd' to temporary portage.
4. Run sync: rsync -av --progress --stats --delete --delete-after \
--exclude='/distfiles' --exclude='/packages' --exclude='/local' . \
/usr/portage/
5. 'rm' the temporary portage directory and the portage snapshot.
6. Run 'emerge metadata'

Using rsync like this is preferred, as it will delete old files, while
protecting non-portage stuff. 'emerge metadata' is also very important,
as it will not only upgrade the portage cache (to make dependency
calculations faster), but also do the package name/slot upgrades, which
are vital to keeping a working Gentoo system.

--
PeKaJe

Reader, suppose you were an idiot. And suppose you were a member of
Congress. But I repeat myself. -- Mark Twain
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 11:05 AM
hot_rage
 
Posts: n/a
Default Re: how to update portage without internet access?

Peter Jensen <usenet@pekajemaps.homeip.net> wrote in news:42aeda2a$0$167
$edfadb0f@dtext01.news.tele.dk:

> Taking a look at /usr/sbin/emerge-webrsync provides some hints to the
> proper procedure. This is what it basically does:
>
> 1. Download portage snapshot somewhere temporary.
> 2. Untar that snapshot (still in temporary location).
> 3. 'cd' to temporary portage.
> 4. Run sync: rsync -av --progress --stats --delete --delete-after \
> --exclude='/distfiles' --exclude='/packages' --exclude='/local' . \
> /usr/portage/
> 5. 'rm' the temporary portage directory and the portage snapshot.
> 6. Run 'emerge metadata'
>
> Using rsync like this is preferred, as it will delete old files, while
> protecting non-portage stuff. 'emerge metadata' is also very important,
> as it will not only upgrade the portage cache (to make dependency
> calculations faster), but also do the package name/slot upgrades, which
> are vital to keeping a working Gentoo system.
>


thank you peter for your answer. i will try this procedure as you told me.

--
hot_rage
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:56 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com