Lines 416-538
Link Here
|
416 |
</body> |
416 |
</body> |
417 |
</subsection> |
417 |
</subsection> |
418 |
</section> |
418 |
</section> |
419 |
<section id="preparing_grp"> |
|
|
420 |
<title>Optional: Preparing for GRP</title> |
421 |
<subsection> |
422 |
<title>Introduction</title> |
423 |
<body> |
424 |
|
425 |
<p> |
426 |
If you are booted from a x86 or ppc CD-1 LiveCD you can relax and continue with |
427 |
<uri link="?part=1&chap=7">Configuring the Kernel</uri> as the installation |
428 |
of prebuilt packages happens at the very end of the installation. |
429 |
</p> |
430 |
|
431 |
<p> |
432 |
If you are booted from a different architecture LiveCD and you want to use the |
433 |
prebuilt packages provided by the LiveCD, continue with <uri |
434 |
link="#copying_from_livecd">Copying over the GRP packages</uri>. |
435 |
</p> |
436 |
|
437 |
<p> |
438 |
If you want to use the prebuilt packages provided by a Gentoo mirror, continue |
439 |
with <uri link="#grp_downloads">Configuring Portage for GRP Downloads</uri>. |
440 |
</p> |
441 |
|
442 |
</body> |
443 |
</subsection> |
444 |
<subsection id="copying_from_livecd"> |
445 |
<title>Copying over the GRP packages</title> |
446 |
<body> |
447 |
|
448 |
<p> |
449 |
You should now copy over the packages onto your filesystem so that Portage is |
450 |
able to use them. First of all, open a second terminal by pressing |
451 |
<c>Alt-F2</c>. This is needed as we need to work from the LiveCD, not from the |
452 |
chrooted environment you're currently working in. |
453 |
</p> |
454 |
|
455 |
<p> |
456 |
You should be greeted by a root prompt (<c>#</c>). Copy over the packages using |
457 |
the following commands: |
458 |
</p> |
459 |
|
460 |
<pre caption="Copy over precompiled packages"> |
461 |
# <i>mkdir -p /mnt/gentoo/usr/portage/packages/All</i> |
462 |
# <i>cp /mnt/cdrom/packages/All/* /mnt/gentoo/usr/portage/packages/All/</i> |
463 |
</pre> |
464 |
|
465 |
<p> |
466 |
After this step has completed, return to the chrooted environment by pressing |
467 |
<c>Alt-F1</c>. |
468 |
</p> |
469 |
|
470 |
<p> |
471 |
Now pay close attention! Your Portage snapshot is in place and the GRP packages |
472 |
are ready to be used. However, Portage doesn't automagically use them unless you |
473 |
tell it to. Luckily, this is hardly difficult: every time you are asked to |
474 |
install a package using <c>emerge</c>, you must add <c>--usepkg</c> as an |
475 |
option: |
476 |
</p> |
477 |
|
478 |
<pre caption="Example for Installing a GRP Package"> |
479 |
<comment>(Example without GRP)</comment> |
480 |
# <i>emerge vanilla-sources</i> |
481 |
|
482 |
<comment>(Example with GRP)</comment> |
483 |
# <i>emerge --usepkg vanilla-sources</i> |
484 |
</pre> |
485 |
|
486 |
<p> |
487 |
That's all there is to it. Just don't forget to add <c>--usepkg</c>. Now |
488 |
continue with <uri link="?part=1&chap=7">Configuring the Kernel</uri>. |
489 |
</p> |
490 |
|
491 |
|
492 |
</body> |
493 |
</subsection> |
494 |
<subsection id="grp_downloads"> |
495 |
<title>Configuring Portage for GRP Downloads</title> |
496 |
<body> |
497 |
|
498 |
<p> |
499 |
First of all, you need to edit <path>/etc/make.conf</path> and define |
500 |
the <c>PORTAGE_BINHOST</c> variable so that it points to the server from which |
501 |
you want to download the GRP packages. Please check our <uri |
502 |
link="/main/en/mirrors.xml">mirror list</uri> for the available mirrors. |
503 |
</p> |
504 |
|
505 |
<pre caption="Editing /mnt/gentoo/etc/make.conf"> |
506 |
# <i>nano -w /etc/make.conf</i> |
507 |
</pre> |
508 |
|
509 |
<pre caption="Setting the PORTAGE_BINHOST variable"> |
510 |
PORTAGE_BINHOST="ftp://some.mirror.com/pub/gentoo/grp/2004/athlon-xp" |
511 |
</pre> |
512 |
|
513 |
<p> |
514 |
Save and exit (by pressing Ctrl-X and confirming). With this in place, you must |
515 |
now pay close attention. Portage will not automagically download the GRP |
516 |
packages if you don't instruct it to. However, this isn't hard: every time you |
517 |
are asked to install a package using <c>emerge</c>, you must add |
518 |
<c>--getbinpkg</c> as an option: |
519 |
</p> |
520 |
|
521 |
<pre caption="Example for Downloading GRP Packages"> |
522 |
<comment>(Example without downloading GRP)</comment> |
523 |
# <i>emerge vanilla-sources</i> |
524 |
|
525 |
<comment>(Example with downloading GRP)</comment> |
526 |
# <i>emerge --getbinpkg vanilla-sources</i> |
527 |
</pre> |
528 |
|
529 |
<p> |
530 |
That's all there is to it. Just don't forget to add <c>--getbinpkg</c>. Now |
531 |
continue with <uri link="?part=1&chap=7">Configuring the Kernel</uri>. |
532 |
</p> |
533 |
|
534 |
</body> |
535 |
</subsection> |
536 |
</section> |
537 |
|
419 |
|
538 |
</sections> |
420 |
</sections> |