/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-system.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-system.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.30 Revision 1.31
2<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> 2<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3 3
4<!-- The content of this document is licensed under the CC-BY-SA license --> 4<!-- The content of this document is licensed under the CC-BY-SA license -->
5<!-- See http://creativecommons.org/licenses/by-sa/1.0 --> 5<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-system.xml,v 1.30 2004/03/06 17:03:15 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-system.xml,v 1.31 2004/03/08 18:24:42 swift Exp $ -->
8 8
9<sections> 9<sections>
10<section> 10<section>
11<title>Chrooting</title> 11<title>Chrooting</title>
12<subsection> 12<subsection>
211 and immediately start with the second one (<uri link="#doc_chap4">Progressing 211 and immediately start with the second one (<uri link="#doc_chap4">Progressing
212 from Stage2 to Stage3</uri>) 212 from Stage2 to Stage3</uri>)
213</li> 213</li>
214<li> 214<li>
215 If you chose <e>stage3</e> (either with or without GRP) then you can skip both 215 If you chose <e>stage3</e> (either with or without GRP) then you can skip both
216 steps. If you want to use GRP, continue with <uri
217 link="#preparing_grp">Optional: Preparing for GRP</uri>. Otherwise continue
218 with <uri link="?part=1&amp;chap=7">Configuring the Kernel</uri> 216 steps and continue with <uri link="?part=1&amp;chap=7">Configuring the
217 Kernel</uri>
219</li> 218</li>
220</ul> 219</ul>
221 220
222</body> 221</body>
223</section> 222</section>
411<p> 410<p>
412You can for now safely ignore any warnings about updated configuration files 411You can for now safely ignore any warnings about updated configuration files
413(and running <c>etc-update</c>). When your Gentoo system is fully installed and 412(and running <c>etc-update</c>). When your Gentoo system is fully installed and
414booted, do read our documentation on <uri 413booted, do read our documentation on <uri
415link="?part=2&amp;chap=4#doc_chap1">Configuration File Protection</uri>. 414link="?part=2&amp;chap=4#doc_chap1">Configuration File Protection</uri>.
415</p>
416
417<p>
416When the building has completed, continue with <uri 418When the build process has completed, continue with <uri
417link="?part=1&amp;chap=7">Configuring the Kernel</uri>. 419link="?part=1&amp;chap=7">Configuring the Kernel</uri>.
418</p> 420</p>
419 421
420</body> 422</body>
421</subsection> 423</subsection>
422</section> 424</section>
423<section id="preparing_grp">
424<title>Optional: Preparing for GRP</title>
425<subsection>
426<title>Introduction</title>
427<body>
428
429<p>
430If you are booted from a x86 or ppc CD-1 LiveCD you can relax and continue with
431<uri link="?part=1&amp;chap=7">Configuring the Kernel</uri> as the installation
432of prebuilt packages happens at the very end of the installation.
433</p>
434
435<p>
436If you are booted from a different architecture LiveCD and you want to use the
437prebuilt packages provided by the LiveCD, continue with <uri
438link="#copying_from_livecd">Copying over the GRP packages</uri>.
439</p>
440
441<p>
442If you want to use the prebuilt packages provided by a Gentoo mirror, continue
443with <uri link="#grp_downloads">Configuring Portage for GRP Downloads</uri>.
444</p>
445
446</body>
447</subsection>
448<subsection id="copying_from_livecd">
449<title>Copying over the GRP packages</title>
450<body>
451
452<p>
453You should now copy over the packages onto your filesystem so that Portage is
454able to use them. First of all, open a second terminal by pressing
455<c>Alt-F2</c>. This is needed as we need to work from the LiveCD, not from the
456chrooted environment you're currently working in.
457</p>
458
459<p>
460You should be greeted by a root prompt (<c>#</c>). Copy over the packages using
461the following commands:
462</p>
463
464<pre caption="Copy over precompiled packages">
465# <i>mkdir -p /mnt/gentoo/usr/portage/packages/All</i>
466# <i>cp /mnt/cdrom/packages/All/* /mnt/gentoo/usr/portage/packages/All/</i>
467</pre>
468
469<p>
470After this step has completed, return to the chrooted environment by pressing
471<c>Alt-F1</c>.
472</p>
473
474<p>
475Now pay close attention! Your Portage snapshot is in place and the GRP packages
476are ready to be used. However, Portage doesn't automagically use them unless you
477tell it to. Luckily, this is hardly difficult: every time you are asked to
478install a package using <c>emerge</c>, you must add <c>--usepkg</c> as an
479option:
480</p>
481
482<pre caption="Example for Installing a GRP Package">
483<comment>(Example without GRP)</comment>
484# <i>emerge vanilla-sources</i>
485
486<comment>(Example with GRP)</comment>
487# <i>emerge --usepkg vanilla-sources</i>
488</pre>
489
490<p>
491That's all there is to it. Just don't forget to add <c>--usepkg</c>. Now
492continue with <uri link="?part=1&amp;chap=7">Configuring the Kernel</uri>.
493</p>
494
495
496</body>
497</subsection>
498<subsection id="grp_downloads">
499<title>Configuring Portage for GRP Downloads</title>
500<body>
501
502<p>
503First of all, you need to edit <path>/etc/make.conf</path> and define
504the <c>PORTAGE_BINHOST</c> variable so that it points to the server from which
505you want to download the GRP packages. Please check our <uri
506link="/main/en/mirrors.xml">mirror list</uri> for the available mirrors.
507</p>
508
509<pre caption="Editing /mnt/gentoo/etc/make.conf">
510# <i>nano -w /etc/make.conf</i>
511</pre>
512
513<pre caption="Setting the PORTAGE_BINHOST variable">
514PORTAGE_BINHOST="ftp://some.mirror.com/pub/gentoo/grp/2004/athlon-xp"
515</pre>
516
517<p>
518Save and exit (by pressing Ctrl-X and confirming). With this in place, you must
519now pay close attention. Portage will not automagically download the GRP
520packages if you don't instruct it to. However, this isn't hard: every time you
521are asked to install a package using <c>emerge</c>, you must add
522<c>--getbinpkg</c> as an option:
523</p>
524
525<pre caption="Example for Downloading GRP Packages">
526<comment>(Example without downloading GRP)</comment>
527# <i>emerge vanilla-sources</i>
528
529<comment>(Example with downloading GRP)</comment>
530# <i>emerge --getbinpkg vanilla-sources</i>
531</pre>
532
533<p>
534That's all there is to it. Just don't forget to add <c>--getbinpkg</c>. Now
535continue with <uri link="?part=1&amp;chap=7">Configuring the Kernel</uri>.
536</p>
537
538</body>
539</subsection>
540</section>
541 425
542</sections> 426</sections>

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.20