.TH "EMERGE" "1" "Dec 2005" "Portage 2.1" "Portage" .SH "NAME" emerge \- Command\-line interface to the Portage system .SH "SYNOPSIS" .TP .BR emerge [\fIoptions\fR] [\fIaction\fR] [\fIebuild\fR | \fItbz2file\fR | \fIset\fR | \fIdependency\fR] ... .TP .BR emerge \fB\-\-sync\fR | \fB\-\-info\fR | \fB\-\-version\fR .TP .BR emerge \fB\-\-search\fR \fIsomestring\fR .TP .BR emerge \fB\-\-help\fR [\fBsystem\fR | \fBconfig\fR | \fBsync\fR] .SH "DESCRIPTION" \fBemerge\fR is the definitive command\-line interface to the Portage system. It is primarily used for installing packages, and \fBemerge\fR can automatically handle any dependencies that the desired package has. \fBemerge\fR can also update the \fBportage tree\fR, making new and updated packages available. \fBemerge\fR gracefully handles updating installed packages to newer releases as well. It handles both source and binary packages, and it can be used to create binary packages for distribution. .SH "EBUILDS, TBZ2S, SETS AND DEPENDENCIES" \fBemerge\fR primarily installs packages. You can specify packages to install in one of four main ways: an \fIebuild\fR, a \fItbz2file\fR, a \fIset\fR, or a \fIdependency\fR. .LP .TP .BR ebuild An \fIebuild\fR must be, at a minimum, a valid Portage package directory name without a version or category, such as \fBportage\fR or \fBpython\fR. Both categories and version numbers may be used in addition, such as \fBsys\-apps/portage\fR or \fB=python\-2.2.1\-r2\fR. \fBemerge\fR ignores a trailing slash so that filename completion can be used. The \fIebuild\fR may also be an actual filename, such as \fB/usr/portage/app\-admin/python/python\-2.2.1\-r2.ebuild\fR. WARNING: The implementation of \fBemerge /path/to/ebuild\fR is broken and so this syntax shouldn't be used. .TP .BR tbz2file A \fItbz2file\fR must be a valid .tbz2 created with \fBebuild \-.ebuild package\fR or \fBemerge \-\-buildpkg [category/]\fR or \fBquickpkg /var/db/pkg//\fR. .TP .BR set Package sets are a convenient shorthand for large groups of packages. Two sets are currently supported: \fBsystem\fR and \fBworld\fR. \fBsystem\fR refers to a set of packages deemed necessary for your system to run properly. \fBworld\fR contains all of the packages in \fBsystem\fR, along with any other packages listed in \fB/var/lib/portage/world\fR. [See \fBFILES\fR below for more information.] Note that these commands are generally used in conjunction with \fB\-\-update\fR. .TP .BR dependency A \fIdependency\fR describes bounds on a package that you wish to install. \fISee portage(5) for the details on these 'atoms'.\fR For example, \fB>=dev\-lang/python\-2.2.1\-r2\fR matches the latest available version of Python greater than or equal to 2.2.1\-r2. Similarly, \fB Geert Bevin Achim Gottinger Nicholas Jones Phil Bordelon Mike Frysinger Marius Mauch .fi .SH "FILES" .TP \fB/var/lib/portage/world\fR Contains a list of all user\-specified packages. You can safely edit this file, adding packages that you want to be considered in \fBworld\fR set updates and removing those that you do not want to be considered. .TP \fB/etc/make.conf\fR Contains variables for the build process, overriding those in \fBmake.globals\fR. \fBYou should edit this file instead of the ones listed below\fR. .TP .B /etc/dispatch\-conf.conf Contains settings to handle automatic updates/backups of configuration files. .TP \fB/etc/make.profile/make.defaults\fR Contains profile\-specific variables for the build process. \fBDo not edit this file\fR. .TP \fB/etc/make.profile/use.defaults\fR Contains a list of packages which, if installed, cause the respective USE flag to be enabled by default. \fBDo not edit this file\fR. .TP \fB/usr/portage/profiles/use.desc\fR Contains the master list of USE flags with descriptions of their functions. \fBDo not edit this file\fR. .TP \fB/etc/make.profile/virtuals\fR Contains a list of default packages used to resolve virtual dependencies. \fBDo not edit this file\fR. .TP \fB/etc/make.profile/packages\fR Contains a list of packages used for the base system. The \fBsystem\fR and \fBworld\fR sets consult this file. \fBDo not edit this file\fR. .TP \fB/etc/make.globals\fR Contains the default variables for the build process. \fBDo not edit this file\fR. .SH "SEE ALSO" .BR "emerge \-\-help", .BR ebuild (1), .BR ebuild (5), .BR make.conf (5), .BR portage (5) .LP A number of helper applications reside in \fI/usr/lib/portage/bin\fR. .LP The \fBapp\-portage/gentoolkit\fR package contains useful scripts such as \fBequery\fR (a package query tool).