For
documentation on configuring other parts of your Gentoo system, I recommend that you check
out www.gentoo.org/doc/en/index.xml.
Getting Software with emerge
Following are some examples of some common uses of the emerge command that you can use
with Gentoo. To use some of the examples, you need to either have a connection to the Internet or
have downloaded all package updates to your local computer.
When the emerge command is run to install software or to get updated software packages, it looks
on a Gentoo mirror site if it can??™t find the packages it needs locally. The first example lets you
search (-s) the /usr/portage directory tree for packages that interest you. For example, to
search for the package named bzflag, type the following:
# emerge -s bzflag
401
Running Gentoo Linux 13
To build and install a package you choose, simply type emerge with the package name:
# emerge bzflag
To update your Portage directory tree so that it contains the latest information to install software
packages, type the following:
# emerge sync
To get your Gentoo system up-to-date, use the -uD world option. The following command checks
all the software packages you have installed on your computer, and then goes to a Gentoo mirror
site to download and install the latest versions of each of those packages:
# emerge -uD world
To view the many other options available with emerge, type man emerge or run emerge with the
help option:
# emerge -h | less
You can use emerge to install packages contained on your local computer or have the packages
downloaded automatically from Gentoo software mirror sites.
Pages:
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806