vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| in Paulo da Silva's honest opinion: > How can I "emerge sync" on a PC withount internet access, > assuming I have an up-to-date PC. > > I know I need to copy /usr/portage. > Then what? > emerge --regen? > emerge --metadata? > Anything else to copy? > > Thanks. i'm not sure, but maybe you need first of all download a snapshot copy from GENTOO_MIRROR, for example the one next to me is http://www.die.unipd.it/pub/Linux/di...gentoo-sources copy it somewhere, like a usb stick, and check it with md5sum, then move to your computer and copy it to local filesystem. now untar it and run rsync locally so that you can synchronize snapshot content and /usr/portage directory... .... now you could do # emerge --regen # emerge --metadata and your portage should be up-to-date PS: i'm not sure about rsync options, maybe someone among others could suggest the right ones. -- Hekaton Keires, En to phronein maedhen aedistos bios. |
| |||
| Paulo da Silva enlightened us with: > How can I "emerge sync" on a PC withount internet access, Get your portage tree from someone who has. > assuming I have an up-to-date PC. In that case, you don't need to do "emerge sync". What do you mean? > I know I need to copy /usr/portage. Ok. > Then what? > emerge --regen? > emerge --metadata? > Anything else to copy? Not really. You could do 'eupdatedb' if you use esearch (I know I do). Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? |
| |||
| On Tue, 21 Dec 2004 09:37:02 +0100, Hekaton Keires wrote: > in Paulo da Silva's honest opinion: > >> How can I "emerge sync" on a PC withount internet access, >> assuming I have an up-to-date PC. >> >> I know I need to copy /usr/portage. >> Then what? >> emerge --regen? >> emerge --metadata? >> Anything else to copy? >> >> Thanks. > > i'm not sure, but maybe you need first of all download a snapshot copy from > GENTOO_MIRROR, for example the one next to me is > > http://www.die.unipd.it/pub/Linux/di...gentoo-sources > > copy it somewhere, like a usb stick, and check it with md5sum, then move to > your computer and copy it to local filesystem. > > now untar it and run rsync locally so that you can synchronize snapshot > content and /usr/portage directory... > > ... now you could do > > # emerge --regen > # emerge --metadata > > and your portage should be up-to-date > > PS: i'm not sure about rsync options, maybe someone among others could > suggest the right ones. Untarring an archiving in your /usr/portage followed by emerge --metadata would probably work but it will not clean up, i.e. removed ebuilds will not be removed from your box. Doing the same as emerge-webrsync would be the easiest option IMHO. Get the latest portage snapshot (16 MB) from a mirror and drop it into a temp dir on your netless box, then run the following commands (mind the snapshot file name): tar jxf portage-20041220.tar.bz2 chown -R 0:0 portage cd portage rsync -av --progress --stats --delete --delete-after \ --exclude='/distfiles' --exclude='/packages' \ --exclude='/local' . /usr/portage cd .. emerge metadata rm -rf portage portage-20041220.tar.bz2 Hth |
| |||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Paulo da Silva wrote: > How can I "emerge sync" on a PC withount internet access, > assuming I have an up-to-date PC. > > I know I need to copy /usr/portage. > Then what? > emerge --regen? > emerge --metadata? I copy /usr/portage using rsync, then I do "emerge metadata" for all my PCs except the one that actually does the "emerge sync" from the internet. > Anything else to copy? As far as I know - no. Martin - -- PGP Key ID 0xD617AEFB available from http://pgp.mit.edu or http://www.keyserver.net Key fingerprint = 9853 C638 00AC A926 CC05 65E3 BD58 7020 D617 AEFB -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFByAKdvVhwINYXrvsRAlMBAKCBhFuzx62iCud26aZO9j 2QcYGQuwCgjpXh hkBQNHMK3YDlCyAbCyhgbuI= =DW1W -----END PGP SIGNATURE----- |
| |||
| in I did not's honest opinion: > tar jxf portage-20041220.tar.bz2 > chown -R 0:0 portage > cd portage > rsync -av --progress --stats --delete --delete-after \ > --exclude='/distfiles' --exclude='/packages' \ > --exclude='/local' . /usr/portage > cd .. > emerge metadata > rm -rf portage portage-20041220.tar.bz2 > > > Hth in fact this was what i meant, thank you for detailed rsync options -- Hekaton Keires, En to phronein maedhen aedistos bios. |
| ||||
| Martin Winkler wrote: > Paulo da Silva wrote: > .... > > I copy /usr/portage using rsync, then I do "emerge metadata" for all my PCs > except the one that actually does the "emerge sync" from the internet. Ok. This is exactly what I need. BTW, I was not very clear about what I needed! English is not my best skill :-( . In fact I have a PC with internet. I can "emerge sync" there. What I need is to replicate the situation on the other PC (no internet). So, I can tar gz /usr/portage, replace /usr/portage in the other PC and run emerge metadata. The other PC is not connected, not even close, to the first one. Thank you. |