| 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.9 2003/11/30 11:31:38 swift Exp $ --> |
4 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-portage.xml,v 1.10 2003/11/30 12:49:20 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> |
| … | |
… | |
| 461 | |
461 | |
| 462 | <pre caption="Installing the prebuilt package for gnumeric"> |
462 | <pre caption="Installing the prebuilt package for gnumeric"> |
| 463 | # <i>emerge --usepkgonly gnumeric</i> |
463 | # <i>emerge --usepkgonly gnumeric</i> |
| 464 | </pre> |
464 | </pre> |
| 465 | |
465 | |
| 466 | <!-- TODO Getbinpkg isn't available yet; don't forget to remove the space |
|
|
| 467 | between - - when uncommented! |
|
|
| 468 | |
|
|
| 469 | <p> |
466 | <p> |
| 470 | If you don't have the prebuilt package on your system yet, you can have |
467 | If you don't have the prebuilt package on your system yet, you can have |
| 471 | <c>emerge</c> download it from a mirror, defined in the <c>PORTAGE_BINHOST</c> |
468 | <c>emerge</c> download it from a mirror, defined in the <c>PORTAGE_BINHOST</c> |
| 472 | variable declared in <path>/etc/make.conf</path>. |
469 | variable declared in <path>/etc/make.conf</path>. |
| 473 | </p> |
470 | </p> |
| 474 | |
471 | |
| 475 | <p> |
472 | <p> |
| 476 | To download the binary package in case this package doesn't exist on |
473 | To download the binary package in case this package doesn't exist on |
| 477 | your system already, use <c>- -getbinpkg</c> (<c>-g</c> in short): |
474 | your system already, use <c>--getbinpkg</c> (<c>-g</c> in short): |
| 478 | </p> |
475 | </p> |
| 479 | |
476 | |
| 480 | <pre caption="Downloading and installing a prebuilt package for gnumeric"> |
477 | <pre caption="Downloading and installing a prebuilt package for gnumeric"> |
| 481 | # <i>emerge - -getbinpkg gnumeric</i> |
478 | # <i>emerge --getbinpkg gnumeric</i> |
| 482 | </pre> |
479 | </pre> |
| 483 | |
480 | |
| 484 | <p> |
481 | <p> |
| 485 | This will download the package and the package-related information for you and |
482 | This will download the package and the package-related information for you and |
| 486 | install it on your system, together with the dependencies. If you want to see |
483 | install it on your system, together with the dependencies. If you want to see |
| 487 | what dependencies will be installed with it, use the <c>- -pretend</c> option |
484 | what dependencies will be installed with it, use the <c>--pretend</c> option |
| 488 | (<c>-p</c> in short): |
485 | (<c>-p</c> in short): |
| 489 | </p> |
486 | </p> |
| 490 | |
487 | |
| 491 | <pre caption="Pretending to download the prebuilt packages for gnumeric"> |
488 | <pre caption="Pretending to download the prebuilt packages for gnumeric"> |
| 492 | # <i>emerge - -getbinpkg - -pretend gnumeric</i> |
489 | # <i>emerge --getbinpkg --pretend gnumeric</i> |
| 493 | </pre> |
490 | </pre> |
| 494 | |
491 | |
| 495 | <p> |
492 | <p> |
| 496 | You can also opt to download the prebuilt package (and the package-related |
493 | You can also opt to download the prebuilt package (and the package-related |
| 497 | information) <e>without</e> checking the information on your local system and |
494 | information) <e>without</e> checking the information on your local system and |
| 498 | <e>without</e> using the prebuilt package already on your system (if |
495 | <e>without</e> using the prebuilt package already on your system (if |
| 499 | applicable), use the <c>- -getbinpkgonly</c> option (<c>-G</c> in short): |
496 | applicable), use the <c>--getbinpkgonly</c> option (<c>-G</c> in short): |
| 500 | </p> |
497 | </p> |
| 501 | |
498 | |
| 502 | <pre caption="Installing a prebuilt package without using local information"> |
499 | <pre caption="Installing a prebuilt package without using local information"> |
| 503 | # <i>emerge - -getbinpkgonly gnumeric</i> |
500 | # <i>emerge --getbinpkgonly gnumeric</i> |
| 504 | </pre> |
501 | </pre> |
| 505 | |
|
|
| 506 | TODO Up until here --> |
|
|
| 507 | |
502 | |
| 508 | <p> |
503 | <p> |
| 509 | You can also opt to install a specific version of a package. |
504 | You can also opt to install a specific version of a package. |
| 510 | For instance, if you want to install a gnumeric version older than 1.2 -- for |
505 | For instance, if you want to install a gnumeric version older than 1.2 -- for |
| 511 | any reason whatsoever :) you would type: |
506 | any reason whatsoever :) you would type: |