/[gentoo]/xml/htdocs/doc/en/handbook/hb-working-portage.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-working-portage.xml

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

Revision 1.14 Revision 1.15
1<!-- The content of this document is licensed under the CC-BY-SA license --> 1<!-- The content of this document is licensed under the CC-BY-SA license -->
2<!-- See http://creativecommons.org/licenses/by-sa/1.0 --> 2<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
3 3
4<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-portage.xml,v 1.14 2003/12/16 17:59:46 swift Exp $ --> 4<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-portage.xml,v 1.15 2004/01/06 15:28:05 swift Exp $ -->
5 5
6<sections> 6<sections>
7<section> 7<section>
8<title>Obtaining Package Information</title> 8<title>Obtaining Package Information</title>
9<subsection> 9<subsection>
224 224
225<p> 225<p>
226You see something new? Yes, <e>downloaded files</e>. When you tell Portage to 226You see something new? Yes, <e>downloaded files</e>. When you tell Portage to
227install a package, it of course needs to have the necessary sources (or 227install a package, it of course needs to have the necessary sources (or
228precompiled packages) available. It therefore checks the contents of 228precompiled packages) available. It therefore checks the contents of
229<path>/usr/portage/distfiles</path> (for sourcecode) or 229<path>/usr/portage/distfiles</path> (for source code) or
230<path>/usr/portage/packages/All</path> (for precompiled packages) to see if the 230<path>/usr/portage/packages/All</path> (for precompiled packages) to see if the
231necessary files are already available. If not, it downloads the necessary files 231necessary files are already available. If not, it downloads the necessary files
232and places them in those directories. 232and places them in those directories.
233</p> 233</p>
234 234
300# <i>emerge --usepkg mirrorselect</i> 300# <i>emerge --usepkg mirrorselect</i>
301</pre> 301</pre>
302 302
303<p> 303<p>
304Now run <c>mirrorselect</c> to automatically select mirrors for you (it will 304Now run <c>mirrorselect</c> to automatically select mirrors for you (it will
305also setup Portage to use a mirror for the sourcecode): 305also setup Portage to use a mirror for the source code):
306</p> 306</p>
307 307
308<pre caption="Running mirrorselect"> 308<pre caption="Running mirrorselect">
309# <i>mirrorselect -a -s3</i> 309# <i>mirrorselect -a -s3</i>
310</pre> 310</pre>
343<title>Building or Prebuilt?</title> 343<title>Building or Prebuilt?</title>
344<body> 344<body>
345 345
346<p> 346<p>
347Gentoo provides ebuilds, the Gentoo packages if you like. But when you want to 347Gentoo provides ebuilds, the Gentoo packages if you like. But when you want to
348install such an ebuild, you can choose between <e>building</e> the package, or 348install such an ebuild, you can choose between <e>building</e> the package and
349using a <e>prebuilt</e> package. But what are the advantages/disadvantages of 349using a <e>prebuilt</e> package. But what are the advantages/disadvantages of
350both approaches, and can they be used next to each other? 350both approaches, and can they be used next to each other?
351</p> 351</p>
352 352
353<p> 353<p>
366<c>CFLAGS</c> &amp; <c>CXXFLAGS</c> variables. 366<c>CFLAGS</c> &amp; <c>CXXFLAGS</c> variables.
367</p> 367</p>
368 368
369<p> 369<p>
370As previously stated, prebuilt packages are stored in the 370As previously stated, prebuilt packages are stored in the
371<path>/usr/portage/packages/All</path> directory, while the sourcecode of the 371<path>/usr/portage/packages/All</path> directory, while the source code of the
372packages are placed in <path>/usr/portage/distfiles</path>. If you have finished 372packages is placed in <path>/usr/portage/distfiles</path>. If you have finished
373installing a package you can remove the package or sourcecode from the 373installing a package you can remove the package or source code from the
374respective directory. However, you might want to keep the package/sourcecode of 374respective directory. However, you might want to keep the package/source code of
375the latest version, just in case you want to reinstall the package (so you don't 375the latest version, just in case you want to reinstall the package (so you don't
376have to redownload it). 376have to redownload it).
377</p> 377</p>
378 378
379</body> 379</body>
393<pre caption="Building gnumeric"> 393<pre caption="Building gnumeric">
394# <i>emerge gnumeric</i> 394# <i>emerge gnumeric</i>
395</pre> 395</pre>
396 396
397<p> 397<p>
398This will download the sourcecode for you and unpacks, compiles and installs the 398This will download the source code for you and unpacks, compiles and installs
399package on your system. It will also do the same for all the dependencies. If 399the package on your system. It will also do the same for all the dependencies.
400you want to see what dependencies will be installed with it, use the 400If you want to see what dependencies will be installed with it, use the
401<c>--pretend</c> option (<c>-p</c> in short): 401<c>--pretend</c> option (<c>-p</c> in short):
402</p> 402</p>
403 403
404<pre caption="Pretending to build gnumeric"> 404<pre caption="Pretending to build gnumeric">
405# <i>emerge --pretend gnumeric</i> 405# <i>emerge --pretend gnumeric</i>
406</pre> 406</pre>
407 407
408<p> 408<p>
409If you want to download the sourcecode of the package and its dependencies, 409If you want to download the source code of the package and its dependencies,
410but don't want to build the package, use the <c>--fetchonly</c> option 410but don't want to build the package, use the <c>--fetchonly</c> option
411(<c>-f</c> in short): 411(<c>-f</c> in short):
412</p> 412</p>
413 413
414<pre caption="Fetching sources for gnumeric"> 414<pre caption="Fetching sources for gnumeric">
553<pre caption="Installing gnumeric without taking care of the dependencies"> 553<pre caption="Installing gnumeric without taking care of the dependencies">
554# <i>emerge --nodeps gnumeric</i> 554# <i>emerge --nodeps gnumeric</i>
555</pre> 555</pre>
556 556
557<p> 557<p>
558To opposite of <c>--nodeps</c> is <c>--onlydeps</c>, which will have Portage 558The opposite of <c>--nodeps</c> is <c>--onlydeps</c>, which will have Portage
559install all dependencies of a given package, but not the package itself: 559install all dependencies of a given package, but not the package itself:
560</p> 560</p>
561 561
562<pre caption="Installing the dependencies of gnumeric"> 562<pre caption="Installing the dependencies of gnumeric">
563# <i>emerge --onlydeps gnumeric</i> 563# <i>emerge --onlydeps gnumeric</i>
632 </li> 632 </li>
633 <li> 633 <li>
634 <e>R</e> (reemerge) The package isn't new, but needs to be reemerged 634 <e>R</e> (reemerge) The package isn't new, but needs to be reemerged
635 </li> 635 </li>
636 <li> 636 <li>
637 <e>F</e> (fetch) The package requires that you download the sourcecode 637 <e>F</e> (fetch) The package requires that you download the source code
638 manually (for instance due to licencing issues) 638 manually (for instance due to licencing issues)
639 </li> 639 </li>
640 <li> 640 <li>
641 <e>U</e> (update) The package already exists on your system but will be 641 <e>U</e> (update) The package already exists on your system but will be
642 upgraded 642 upgraded

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20