/[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.13 Revision 1.17
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.13 2003/12/04 22:26:19 swift Exp $ --> 4<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-portage.xml,v 1.17 2004/01/07 18:01:33 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
235<!--
235<note> 236<note>
236Searching the Portage Tree, especially when using <c>--searchdesc</c>, is very 237Searching the Portage Tree, especially when using <c>- -searchdesc</c>, is very
237time consuming. There are other, more performant tools available. We will 238time consuming. There are other, more performant tools available. We will
238describe those in the chapter on <uri link="?part=2&amp;chap=7">Gentoolkit and 239describe those in the chapter on <uri link="?part=2&amp;chap=7">Gentoolkit and
239Other Tools</uri>. 240Other Tools</uri>.
240</note> 241</note>
242-->
241 243
242</body> 244</body>
243</subsection> 245</subsection>
244<subsection> 246<subsection>
245<title>Viewing the ChangeLog</title> 247<title>Viewing the ChangeLog</title>
246<body> 248<body>
247 249
248<p> 250<p>
249While browsing through the Portage Tree, you saw that there was a ChangeLog for 251While browsing through the Portage Tree, you saw that there was a ChangeLog for
250each package. You can view this ChangeLog with <c>emerge</c> too. Use the 252each package. You can view the ChangeLog entries between the available version
253and the installed version with <c>emerge</c> too. Use the
251<c>--pretend --changelog</c> (<c>-pl</c> in short) options. As an example we 254<c>--pretend --changelog</c> (<c>-pl</c> in short) options. As an example we
252will view the ChangeLog entries for <c>gnumeric</c>: 255will view the ChangeLog entries for <c>gnumeric</c>:
253</p> 256</p>
254 257
255<pre caption="Viewing the ChangeLog entries for gnumeric"> 258<pre caption="Viewing the ChangeLog entries for gnumeric">
256# <i>emerge --pretend --changelog gnumeric</i> 259# <i>emerge --pretend --changelog gnumeric</i>
260<comment>(Some output removed to improve readability)</comment>
261*gnumeric-1.2.2
262
263 27 Nov 2003; foser &lt;foser@gentoo.org&gt; gnumeric-1.2.2.ebuild :
264 New release, requested in #34492
265 updated deps
266
267 12 Nov 2003; Jason Wever &lt;weeve@gentoo.org&gt; gnumeric-1.2.0.ebuild:
268 Marked stable on sparc, fixes bug #32405.
269
270 14 Oct 2003; Jason Wever &lt;weeve@gentoo.org&gt; gnumeric-1.0.8.ebuild:
271 Added ~sparc keyword. Fixes bug #31150.
257</pre> 272</pre>
258 273
259</body> 274</body>
260</subsection> 275</subsection>
261</section> 276</section>
298# <i>emerge --usepkg mirrorselect</i> 313# <i>emerge --usepkg mirrorselect</i>
299</pre> 314</pre>
300 315
301<p> 316<p>
302Now run <c>mirrorselect</c> to automatically select mirrors for you (it will 317Now run <c>mirrorselect</c> to automatically select mirrors for you (it will
303also setup Portage to use a mirror for the sourcecode): 318also setup Portage to use a mirror for the source code):
304</p> 319</p>
305 320
306<pre caption="Running mirrorselect"> 321<pre caption="Running mirrorselect">
307# <i>mirrorselect -a -s3</i> 322# <i>mirrorselect -a -s3</i>
308</pre> 323</pre>
341<title>Building or Prebuilt?</title> 356<title>Building or Prebuilt?</title>
342<body> 357<body>
343 358
344<p> 359<p>
345Gentoo provides ebuilds, the Gentoo packages if you like. But when you want to 360Gentoo provides ebuilds, the Gentoo packages if you like. But when you want to
346install such an ebuild, you can choose between <e>building</e> the package, or 361install such an ebuild, you can choose between <e>building</e> the package and
347using a <e>prebuilt</e> package. But what are the advantages/disadvantages of 362using a <e>prebuilt</e> package. But what are the advantages/disadvantages of
348both approaches, and can they be used next to each other? 363both approaches, and can they be used next to each other?
349</p> 364</p>
350 365
351<p> 366<p>
364<c>CFLAGS</c> &amp; <c>CXXFLAGS</c> variables. 379<c>CFLAGS</c> &amp; <c>CXXFLAGS</c> variables.
365</p> 380</p>
366 381
367<p> 382<p>
368As previously stated, prebuilt packages are stored in the 383As previously stated, prebuilt packages are stored in the
369<path>/usr/portage/packages/All</path> directory, while the sourcecode of the 384<path>/usr/portage/packages/All</path> directory, while the source code of the
370packages are placed in <path>/usr/portage/distfiles</path>. If you have finished 385packages is placed in <path>/usr/portage/distfiles</path>. If you have finished
371installing a package you can remove the package or sourcecode from the 386installing a package you can remove the package or source code from the
372respective directory. However, you might want to keep the package/sourcecode of 387respective directory. However, you might want to keep the package/source code of
373the latest version, just in case you want to reinstall the package (so you don't 388the latest version, just in case you want to reinstall the package (so you don't
374have to redownload it). 389have to redownload it).
375</p> 390</p>
376 391
377</body> 392</body>
391<pre caption="Building gnumeric"> 406<pre caption="Building gnumeric">
392# <i>emerge gnumeric</i> 407# <i>emerge gnumeric</i>
393</pre> 408</pre>
394 409
395<p> 410<p>
396This will download the sourcecode for you and unpacks, compiles and installs the 411This will download the source code for you and unpacks, compiles and installs
397package on your system. It will also do the same for all the dependencies. If 412the package on your system. It will also do the same for all the dependencies.
398you want to see what dependencies will be installed with it, use the 413If you want to see what dependencies will be installed with it, use the
399<c>--pretend</c> option (<c>-p</c> in short): 414<c>--pretend</c> option (<c>-p</c> in short):
400</p> 415</p>
401 416
402<pre caption="Pretending to build gnumeric"> 417<pre caption="Pretending to build gnumeric">
403# <i>emerge --pretend gnumeric</i> 418# <i>emerge --pretend gnumeric</i>
404</pre> 419</pre>
405 420
406<p> 421<p>
407If you want to download the sourcecode of the package and its dependencies, 422If you want to download the source code of the package and its dependencies,
408but don't want to build the package, use the <c>--fetchonly</c> option 423but don't want to build the package, use the <c>--fetchonly</c> option
409(<c>-f</c> in short): 424(<c>-f</c> in short):
410</p> 425</p>
411 426
412<pre caption="Fetching sources for gnumeric"> 427<pre caption="Fetching sources for gnumeric">
551<pre caption="Installing gnumeric without taking care of the dependencies"> 566<pre caption="Installing gnumeric without taking care of the dependencies">
552# <i>emerge --nodeps gnumeric</i> 567# <i>emerge --nodeps gnumeric</i>
553</pre> 568</pre>
554 569
555<p> 570<p>
556To opposite of <c>--nodeps</c> is <c>--onlydeps</c>, which will have Portage 571The opposite of <c>--nodeps</c> is <c>--onlydeps</c>, which will have Portage
557install all dependencies of a given package, but not the package itself: 572install all dependencies of a given package, but not the package itself:
558</p> 573</p>
559 574
560<pre caption="Installing the dependencies of gnumeric"> 575<pre caption="Installing the dependencies of gnumeric">
561# <i>emerge --onlydeps gnumeric</i> 576# <i>emerge --onlydeps gnumeric</i>
630 </li> 645 </li>
631 <li> 646 <li>
632 <e>R</e> (reemerge) The package isn't new, but needs to be reemerged 647 <e>R</e> (reemerge) The package isn't new, but needs to be reemerged
633 </li> 648 </li>
634 <li> 649 <li>
635 <e>F</e> (fetch) The package requires that you download the sourcecode 650 <e>F</e> (fetch) The package requires that you download the source code
636 manually (for instance due to licencing issues) 651 manually (for instance due to licencing issues)
637 </li> 652 </li>
638 <li> 653 <li>
639 <e>U</e> (update) The package already exists on your system but will be 654 <e>U</e> (update) The package already exists on your system but will be
640 upgraded 655 upgraded
713 </li> 728 </li>
714 <li> 729 <li>
715 <c>!empty</c> : The listed directory is not empty 730 <c>!empty</c> : The listed directory is not empty
716 </li> 731 </li>
717 <li> 732 <li>
718 <c>cfgpro</c> : Another already installed package claims to own this file 733 <c>cfgpro</c> : This file is located inside a protected directory and will
734 not be touched for safety
719 </li> 735 </li>
720</ul> 736</ul>
721 737
722</body> 738</body>
723</subsection> 739</subsection>

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20