/[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.27 Revision 1.28
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.27 2004/02/07 19:05:37 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-system.xml,v 1.28 2004/03/01 05:43:41 swift Exp $ -->
8 8
9<sections> 9<sections>
10<section> 10<section>
11<title>Chrooting</title> 11<title>Chrooting</title>
12<subsection> 12<subsection>
14<body> 14<body>
15 15
16<p> 16<p>
17If you have booted from a Gentoo LiveCD, you are able to use <c>mirrorselect</c> 17If you have booted from a Gentoo LiveCD, you are able to use <c>mirrorselect</c>
18to update <path>/etc/make.conf</path> so fast mirrors are used for both Portage 18to update <path>/etc/make.conf</path> so fast mirrors are used for both Portage
19and source code: 19and source code (of course in case you have a working network connection):
20</p> 20</p>
21 21
22<pre caption="Selecting fast mirrors"> 22<pre caption="Selecting fast mirrors">
23# <i>mirrorselect -a -s4 -o &gt;&gt; /mnt/gentoo/etc/make.conf</i> 23# <i>mirrorselect -a -s4 -o &gt;&gt; /mnt/gentoo/etc/make.conf</i>
24</pre> 24</pre>
103<subsection> 103<subsection>
104<title>Optional: Updating Portage</title> 104<title>Optional: Updating Portage</title>
105<body> 105<body>
106 106
107<p> 107<p>
108If you are <e>not</e> using GRP, you must download a recent Portage snapshot 108If you haven't installed a Portage snapshot in the previous chapter, you must
109from the Internet. <c>emerge sync</c> does this for you. GRP-users should skip 109download a recent Portage tree from the Internet. <c>emerge sync</c> does this
110this and continue with <uri link="#doc_chap1_sect6">Configuring the USE 110for you. Other users should skip this and continue with <uri
111variable</uri>. 111link="#configure_USE">Configuring the USE variable</uri>.
112</p> 112</p>
113 113
114<pre caption="Updating Portage"> 114<pre caption="Updating Portage">
115# <i>emerge sync</i> 115# <i>emerge sync</i>
116<comment>(In case you are unable to use rsync, use "emerge-webrsync" which 116<comment>(In case you are unable to use rsync, use "emerge-webrsync" which
124on during the installation. 124on during the installation.
125</p> 125</p>
126 126
127</body> 127</body>
128</subsection> 128</subsection>
129<subsection> 129<subsection id="configure_USE">
130<title>Configuring the USE variable</title> 130<title>Configuring the USE variable</title>
131<body> 131<body>
132 132
133<p> 133<p>
134<c>USE</c> is one of the most powerful variables Gentoo provides to its users. 134<c>USE</c> is one of the most powerful variables Gentoo provides to its users.
228 and immediately start with the second one (<uri link="#doc_chap4">Progressing 228 and immediately start with the second one (<uri link="#doc_chap4">Progressing
229 from Stage2 to Stage3</uri>) 229 from Stage2 to Stage3</uri>)
230</li> 230</li>
231<li> 231<li>
232 If you chose <e>stage3</e> (either with or without GRP) then you can skip both 232 If you chose <e>stage3</e> (either with or without GRP) then you can skip both
233 steps and continue with the next section: <uri 233 steps. If you want to use GRP, continue with <uri
234 link="#preparing_grp">Optional: Preparing for GRP</uri>. Otherwise continue
234 link="?part=1&amp;chap=7">Configuring the Kernel</uri> 235 with <uri link="?part=1&amp;chap=7">Configuring the Kernel</uri>
235</li> 236</li>
236</ul> 237</ul>
237 238
238</body> 239</body>
239</section> 240</section>
430</p> 431</p>
431 432
432</body> 433</body>
433</subsection> 434</subsection>
434</section> 435</section>
436<section id="preparing_grp">
437<title>Optional: Preparing for GRP</title>
438<subsection>
439<title>Introduction</title>
440<body>
441
442<p>
443If you are booted from a x86 or ppc CD-1 LiveCD you can relax and continue with
444<uri link="?part=1&amp;chap=7">Configuring the Kernel</uri> as the installation
445of prebuilt packages happens at the very end of the installation.
446</p>
447
448<p>
449If you are booted from a different architecture LiveCD and you want to use the
450prebuilt packages provided by the LiveCD, continue with <uri
451link="#copying_from_livecd">Copying over the GRP packages</uri>.
452</p>
453
454<p>
455If you want to use the prebuilt packages provided by a Gentoo mirror, continue
456with <uri link="#grp_downloads">Configuring Portage for GRP Downloads</uri>.
457</p>
458
459</body>
460</subsection>
461<subsection id="copying_from_livecd">
462<title>Copying over the GRP packages</title>
463<body>
464
465<p>
466You should now copy over the packages onto your filesystem so that Portage is
467able to use them. First of all, open a second terminal by pressing
468<c>Alt-F2</c>. This is needed as we need to work from the LiveCD, not from the
469chrooted environment you're currently working in.
470</p>
471
472<p>
473You should be greeted by a root prompt (<c>#</c>). Copy over the packages using
474the following commands:
475</p>
476
477<pre caption="Copy over precompiled packages">
478# <i>mkdir -p /mnt/gentoo/usr/portage/packages/All</i>
479# <i>cp /mnt/cdrom/packages/All/* /mnt/gentoo/usr/portage/packages/All/</i>
480</pre>
481
482<p>
483After this step has completed, return to the chrooted environment by pressing
484<c>Alt-F1</c>.
485</p>
486
487<p>
488Now pay close attention! Your Portage snapshot is in place and the GRP packages
489are ready to be used. However, Portage doesn't automagically use them unless you
490tell it to. Luckily, this is hardly difficult: every time you are asked to
491install a package using <c>emerge</c>, you must add <c>--usepkg</c> as an
492option:
493</p>
494
495<pre caption="Example for Installing a GRP Package">
496<comment>(Example without GRP)</comment>
497# <i>emerge vanilla-sources</i>
498
499<comment>(Example with GRP)</comment>
500# <i>emerge --usepkg vanilla-sources</i>
501</pre>
502
503<p>
504That's all there is to it. Just don't forget to add <c>--usepkg</c>. Now
505continue with <uri link="?part=1&amp;chap=7">Configuring the Kernel</uri>.
506</p>
507
508
509</body>
510</subsection>
511<subsection id="grp_downloads">
512<title>Configuring Portage for GRP Downloads</title>
513<body>
514
515<p>
516First of all, you need to edit <path>/etc/make.conf</path> and define
517the <c>PORTAGE_BINHOST</c> variable so that it points to the server from which
518you want to download the GRP packages. Please check our <uri
519link="/main/en/mirrors.xml">mirror list</uri> for the available mirrors.
520</p>
521
522<pre caption="Editing /mnt/gentoo/etc/make.conf">
523# <i>nano -w /etc/make.conf</i>
524</pre>
525
526<pre caption="Setting the PORTAGE_BINHOST variable">
527PORTAGE_BINHOST="ftp://some.mirror.com/pub/gentoo/grp/2004/athlon-xp"
528</pre>
529
530<p>
531Save and exit (by pressing Ctrl-X and confirming). With this in place, you must
532now pay close attention. Portage will not automagically download the GRP
533packages if you don't instruct it to. However, this isn't hard: every time you
534are asked to install a package using <c>emerge</c>, you must add
535<c>--getbinpkg</c> as an option:
536</p>
537
538<pre caption="Example for Downloading GRP Packages">
539<comment>(Example without downloading GRP)</comment>
540# <i>emerge vanilla-sources</i>
541
542<comment>(Example with downloading GRP)</comment>
543# <i>emerge --getbinpkg vanilla-sources</i>
544</pre>
545
546<p>
547That's all there is to it. Just don't forget to add <c>--getbinpkg</c>. Now
548continue with <uri link="?part=1&amp;chap=7">Configuring the Kernel</uri>.
549</p>
550
551</body>
552</subsection>
553</section>
554
435</sections> 555</sections>

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20