/[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.35 Revision 1.36
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-working-portage.xml,v 1.35 2004/08/29 10:56:31 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-portage.xml,v 1.36 2004/08/30 17:44:00 neysx Exp $ -->
8 8
9<sections> 9<sections>
10<section> 10<section>
11<title>Obtaining Package Information</title> 11<title>Obtaining Package Information</title>
12<subsection> 12<subsection>
221</pre> 221</pre>
222 222
223<p> 223<p>
224As you can see, the output of <c>emerge</c> informs you about the category and 224As you can see, the output of <c>emerge</c> informs you about the category and
225name of the package, the available version, the currently installed version, 225name of the package, the available version, the currently installed version,
226the size of the downloaded files, the homepage and the small description. 226the size of the downloaded files, the homepage and the short description.
227</p>
228
229<p> 227</p>
228
229<p>
230You see something new? Yes, <e>downloaded files</e>. When you tell Portage to 230Do you see something else? Yes, <e>downloaded files</e>. When you tell Portage
231install a package, it of course needs to have the necessary sources (or 231to install a package, it of course needs to have the necessary sources (or
232precompiled packages) available. It therefore checks the contents of 232precompiled packages) available. It therefore checks the contents of
233<path>/usr/portage/distfiles</path> to see if the necessary files are already 233<path>/usr/portage/distfiles</path> to see if the necessary files are already
234available. If not, it downloads the necessary files and places them in that 234available. If not, it downloads the necessary files and places them in that
235directory. 235directory.
236</p> 236</p>
293<subsection> 293<subsection>
294<title>Selecting a Mirror for rsync</title> 294<title>Selecting a Mirror for rsync</title>
295<body> 295<body>
296 296
297<p> 297<p>
298It is adviseable to first select a fast <uri 298It is advisable to first select a fast <uri
299link="/main/en/mirrors.xml">mirror</uri> close to you. You can do this manually 299link="/main/en/mirrors.xml">mirror</uri> close to you. You can do this manually
300(by setting the <c>SYNC</c> variable in <path>/etc/make.conf</path>) or use 300(by setting the <c>SYNC</c> variable in <path>/etc/make.conf</path>) or use
301<c>mirrorselect</c> to do this for you automatically. As the <c>SYNC</c> 301<c>mirrorselect</c> to do this for you automatically. As the <c>SYNC</c>
302variable will be discussed later on, we will focus on using <c>mirrorselect</c>. 302variable will be discussed later on, we will focus on using <c>mirrorselect</c>.
303First install <c>mirrorselect</c> by emerging it: 303First install <c>mirrorselect</c> by emerging it:
352 352
353<p> 353<p>
354Gentoo provides ebuilds, the Gentoo packages if you like. But when you want to 354Gentoo provides ebuilds, the Gentoo packages if you like. But when you want to
355install such an ebuild, you can choose between <e>building</e> the package and 355install such an ebuild, you can choose between <e>building</e> the package and
356using a <e>prebuilt</e> package. But what are the advantages/disadvantages of 356using a <e>prebuilt</e> package. But what are the advantages/disadvantages of
357both approaches, and can they be used next to each other? 357both approaches, and can they be used alongside each other?
358</p> 358</p>
359 359
360<p> 360<p>
361As you probably have guessed, building packages takes a lot of time (especially 361As you probably have guessed, building packages takes a lot of time (especially
362if you have little resources or want to build big packages, such as <uri 362if you have little resources or want to build big packages, such as <uri
535<subsection> 535<subsection>
536<title>Working with Dependencies</title> 536<title>Working with Dependencies</title>
537<body> 537<body>
538 538
539<p> 539<p>
540Portage has an extensive support for dependency handling. Although you usually 540Portage has extensive support for dependency handling. Although you usually
541don't need to even think about this (as dependencies are automatically handled 541don't need to even think about this (as dependencies are automatically handled
542by Portage) some users might want to know how you can work with <c>emerge</c> 542by Portage) some users might want to know how you can work with <c>emerge</c>
543and dependencies. 543and dependencies.
544</p> 544</p>
545 545
555# <i>emerge --emptytree --pretend gnumeric</i> 555# <i>emerge --emptytree --pretend gnumeric</i>
556</pre> 556</pre>
557 557
558<p> 558<p>
559Another argument is <c>--nodeps</c>, which will ask Portage to try install the 559Another argument is <c>--nodeps</c>, which will ask Portage to try install the
560given package without taking care of the dependencies. It is trivial that this 560given package without taking care of the dependencies. This can all too often
561can lead to failures. 561lead to failures.
562</p> 562</p>
563 563
564<pre caption="Installing gnumeric without taking care of the dependencies"> 564<pre caption="Installing gnumeric without taking care of the dependencies">
565# <i>emerge --nodeps gnumeric</i> 565# <i>emerge --nodeps gnumeric</i>
566</pre> 566</pre>
831edit the <c>ACCEPT_KEYWORDS</c> variable in <path>/etc/make.conf</path> so that 831edit the <c>ACCEPT_KEYWORDS</c> variable in <path>/etc/make.conf</path> so that
832it reads <e>~ARCH</e> (again: for x86-based systems: <e>~x86</e>, etc.). 832it reads <e>~ARCH</e> (again: for x86-based systems: <e>~x86</e>, etc.).
833</p> 833</p>
834 834
835<p> 835<p>
836Note though that it is far from trivial (if even impossible) to go back to 836Note though that it is far from simple (or even impossible) to go back to
837<e>ARCH</e> from <e>~ARCH</e>. 837<e>ARCH</e> from <e>~ARCH</e>.
838</p> 838</p>
839 839
840<p> 840<p>
841If you want to update your system now, you will notice that <e>a lot</e> of 841If you want to update your system now, you will notice that <e>a lot</e> of

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

  ViewVC Help
Powered by ViewVC 1.1.20