Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   Offline Update (http://www.linux-archive.org/gentoo-user/704386-offline-update.html)

Silvio Siefke 09-16-2012 04:52 PM

Offline Update
 
Hello,

can i copy the portage tree from my Notebook to the desktop PC?

http://en.gentoo-wiki.com/wiki/Networkless_Maintenance

I use this as help, but must i load the portage latest or can copy
the tree from Notebook, because is up to date.


Thanks for help.


Regards
Silvio

Alan McKinnon 09-16-2012 05:10 PM

Offline Update
 
On Sun, 16 Sep 2012 18:52:54 +0200
Silvio Siefke <siefke_listen@web.de> wrote:

> Hello,
>
> can i copy the portage tree from my Notebook to the desktop PC?

Yes. There is only one tree, not different one for different arches.

So it does not matter where you get your tree from, only that you do
have a copy.

Do make sure that owners and permissions are set to something that will
work on the destination after the copy.


>
> http://en.gentoo-wiki.com/wiki/Networkless_Maintenance
>
> I use this as help, but must i load the portage latest or can copy
> the tree from Notebook, because is up to date.
>
>
> Thanks for help.
>
>
> Regards
> Silvio
>



--
Alan McKinnon
alan.mckinnon@gmail.com

Bryan Gardiner 09-16-2012 05:11 PM

Offline Update
 
On Sun, 16 Sep 2012 18:52:54 +0200
Silvio Siefke <siefke_listen@web.de> wrote:

> Hello,
>
> can i copy the portage tree from my Notebook to the desktop PC?
>
> http://en.gentoo-wiki.com/wiki/Networkless_Maintenance
>
> I use this as help, but must i load the portage latest or can copy
> the tree from Notebook, because is up to date.
>
>
> Thanks for help.
>
>
> Regards
> Silvio

I don't know if this handles things like package renames that get
processed at the end of syncing. Maybe emerge knows to do this on the
next run? I haven't tried this way, can someone confirm?

One way that works is to uncomment the [gentoo-portage] entry in
/etc/rsync.conf on your laptop, start rsyncd, then point your desktop
to sync from your laptop with:

SYNC="rsync://ip.of.laptop.here/gentoo-portage"

in make.conf, and do an emerge --sync / eix-sync as normal.

Cheers,
Bryan

Dale 09-16-2012 05:25 PM

Offline Update
 
Alan McKinnon wrote:
> On Sun, 16 Sep 2012 18:52:54 +0200
> Silvio Siefke <siefke_listen@web.de> wrote:
>
>> Hello,
>>
>> can i copy the portage tree from my Notebook to the desktop PC?
> Yes. There is only one tree, not different one for different arches.
>
> So it does not matter where you get your tree from, only that you do
> have a copy.
>
> Do make sure that owners and permissions are set to something that will
> work on the destination after the copy.
>
>

It's been a while since I did this so, does he need to run emerge
--metadata like used to be needed a long time ago? I think that would
take care of Bryan's concerns too.

Dale

:-) :-)

--
I am only responsible for what I said ... Not for what you understood or how you interpreted my words!

Joćo Matos 09-16-2012 05:55 PM

Offline Update
 
A few years ago, I used to run gentoo offline. When I needed to update it, I used to download the portage snapshot, and use the following script, based on Gentoo handbook:

#!/bin/bash
mv /usr/portage/distfiles /usr/


rm -rf /usr/portage/
tar xvjf $1 -C /usr
mv /usr/distfiles /usr/portage/
emerge --metadata
emerge --regen

I also have another script to built a list of packages for download. You can take this list to a connected place, download the files and put it into /usr/portage/distfiles/. If useful, I can give it to you (but I don't know if it still works).




2012/9/16 Dale <rdalek1967@gmail.com>


Alan McKinnon wrote:

> On Sun, 16 Sep 2012 18:52:54 +0200

> Silvio Siefke <siefke_listen@web.de> wrote:

>

>> Hello,

>>

>> can i copy the portage tree from my Notebook to the desktop PC?

> Yes. There is only one tree, not different one for different arches.

>

> So it does not matter where you get your tree from, only that you do

> have a copy.

>

> Do make sure that owners and permissions are set to something that will

> work on the destination after the copy.

>

>



It's been a while since I did this so, does he need to run emerge

--metadata like used to be needed a long time ago? *I think that would

take care of Bryan's concerns too.



Dale



:-) *:-)



--

I am only responsible for what I said ... Not for what you understood or how you interpreted my words!







--
Joćo de Matos
Linux User #461527
Graduando em Engenharia de Computaēćo 2005.1
UEFS - Universidade Estadual de Feira de Santana

Paul Hartman 09-17-2012 03:33 PM

Offline Update
 
On Sun, Sep 16, 2012 at 12:25 PM, Dale <rdalek1967@gmail.com> wrote:
> It's been a while since I did this so, does he need to run emerge
> --metadata like used to be needed a long time ago?

Metadata is included in the tree now, so probably not necessary I would guess.

Dale 09-17-2012 06:30 PM

Offline Update
 
Paul Hartman wrote:
> On Sun, Sep 16, 2012 at 12:25 PM, Dale <rdalek1967@gmail.com> wrote:
>> It's been a while since I did this so, does he need to run emerge
>> --metadata like used to be needed a long time ago?
> Metadata is included in the tree now, so probably not necessary I would guess.
>
>

I thought it was changed but wasn't sure. I remember seeing all those
files going by when I sync. I just wasn't sure if that was the same
thing as it used to be.

Thanks for the info. Now to remember that in the future. :/

Dale

:-) :-)

--
I am only responsible for what I said ... Not for what you understood or how you interpreted my words!


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

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.