Rename the undocumented --conistent option to --complete-graph and add
[portage.git] / man / emerge.1
1 .TH "EMERGE" "1" "Jun 2007" "Portage 2.1.3" "Portage"
2 .SH "NAME"
3 emerge \- Command\-line interface to the Portage system
4 .SH "SYNOPSIS"
5 .TP
6 .BR emerge
7 [\fIoptions\fR] [\fIaction\fR] [\fIebuild\fR | \fItbz2file\fR | \fI@set\fR | \fIatom\fR] ...
8 .TP
9 .BR emerge
10 \fB\-\-sync\fR | \fB\-\-version\fR
11 .TP
12 .BR emerge
13 \fB\-\-info\fR [\fIatom\fR]
14 .TP
15 .BR emerge
16 \fB\-\-search\fR \fIsomestring\fR
17 .TP
18 .BR emerge
19 \fB\-\-help\fR [\fBsystem\fR | \fBworld\fR | \fB\-\-sync\fR]
20 .SH "DESCRIPTION"
21 \fBemerge\fR is the definitive command\-line interface to the Portage
22 system.  It is primarily used for installing packages, and \fBemerge\fR
23 can automatically handle any dependencies that the desired package has.
24 \fBemerge\fR can also update the \fBportage tree\fR, making new and
25 updated packages available.  \fBemerge\fR gracefully handles updating
26 installed packages to newer releases as well.  It handles both source
27 and binary packages, and it can be used to create binary packages for
28 distribution.
29 .SH "EBUILDS, TBZ2S, SETS AND ATOMS"
30 \fBemerge\fR primarily installs packages.  You can specify
31 packages to install in one of four main ways: an \fIebuild\fR,
32 a \fItbz2file\fR, a \fIset\fR, or an \fIatom\fR.
33 .LP
34 .TP
35 .BR ebuild
36 An \fIebuild\fR must be, at a minimum, a valid Portage
37 package directory name without a version or category, such as
38 \fBportage\fR or \fBpython\fR.
39 Both categories and version numbers may be used in addition, such
40 as \fBsys\-apps/portage\fR or \fB=python\-2.2.1\-r2\fR.
41 \fBemerge\fR
42 ignores a trailing slash so that filename completion can be used.
43 The \fIebuild\fR may also be an actual filename, such as
44 \fB/usr/portage/app\-admin/python/python\-2.2.1\-r2.ebuild\fR.
45 \fBWARNING:\fR The implementation of \fBemerge /path/to/ebuild\fR is broken and
46 so this syntax shouldn't be used.
47 .TP
48 .BR tbz2file
49 A \fItbz2file\fR must be a valid .tbz2 created with \fBebuild
50 <package>\-<version>.ebuild package\fR or \fBemerge \-\-buildpkg 
51 [category/]<package>\fR or \fBquickpkg /var/db/pkg/<category>/<package>\fR.
52 .TP
53 .BR set
54 A \fIset\fR is a convenient shorthand for a large group of
55 packages.  Two sets are currently always available: \fBsystem\fR
56 and \fBworld\fR.  \fBsystem\fR refers to a set of packages
57 deemed necessary for your system to run properly. \fBworld\fR
58 contains all the packages listed in \fB/var/lib/portage/world\fR.  [See
59 \fBFILES\fR below for more information.] Other sets can exist depending
60 on the current configuration. Note that a \fIset\fR
61 is generally used in conjunction with \fB\-\-update\fR. When used as 
62 arguments to \fBemerge\fR sets have to be prefixed with \fB@\fR to be
63 recognized.
64 .TP
65 .BR atom
66 An \fIatom\fR describes bounds on a package that you wish to install.  
67 \fISee portage(5) for the details on atom syntax.\fR  For example, 
68 \fB>=dev\-lang/python\-2.2.1\-r2\fR matches the latest available version of 
69 Python greater than or equal to 2.2.1\-r2.  Similarly, 
70 \fB<dev\-lang/python\-2.0\fR matches the latest available version of Python 
71 before 2.0.  Note that in many shells you will need to escape characters such 
72 as '<' and '='; use single\- or double\-quotes around the \fIatom\fR 
73 to get around escaping problems.
74 .SH "ACTIONS"
75 .TP
76 .BR "No action"
77 If no action is specified, the action is to merge in the specified
78 packages, satisfying any dependencies that they may have.  The
79 arguments can be \fIebuilds\fR, \fItbz2s\fR, \fIsets\fR, or
80 \fIatoms\fR.  \fBNote that you need to use the \-\-usepkg 
81 option if you want to install a tbz2\fR.  The packages are added
82 to the \fBworld\fR file at the end, so that they are considered for
83 later updating.
84 .TP
85 .BR "\-\-clean " (\fB\-c\fR)
86 Cleans up the system by examining the installed packages and removing older
87 packages.  This is accomplished by looking at each installed package and separating
88 the installed versions by \fBslot\fR.  Clean will \fBremove all but the most recently
89 installed version in each \fbslot\fR.  Clean should not remove unslotted packages.
90 Note: Most recently installed means most \fBrecent\fR, not highest version.
91 .TP
92 .BR "\-\-config "
93 Run package specific actions needed to be executed after the emerge process 
94 has completed.  This usually entails configuration file setup or other similar 
95 setups that the user may wish to run.
96 .TP
97 .BR \-\-depclean
98 Cleans the system by removing packages that are not associated
99 with explicitly merged packages. Depclean works by creating the
100 full dependency tree from the system list and the world file,
101 then comparing it to installed packages. Packages installed, but
102 not associated with an explicit merge are listed as candidates
103 for unmerging. Inexperienced users are advised to use \fB\-\-pretend\fR
104 with this option in order to see a preview of which packages
105 will be uninstalled. \fBWARNING: Removing some
106 packages may cause packages which link to the removed package 
107 to stop working and complain about missing libraries.\fR
108 Rebuild the complaining package to fix this issue.  Also see
109 \fB\-\-with\-bdeps\fR for behavior with respect to build time dependencies that
110 are not strictly required. Depclean serves as a dependency aware
111 version of \fB\-\-unmerge\fR. When given one or more atoms, it will
112 unmerge matched packages that have no reverse dependencies. Use
113 \fB\-\-depclean\fR together with \fB\-\-verbose\fR to show reverse
114 dependencies.
115 .TP
116 .BR "\-\-help " (\fB\-h\fR)
117 Displays help information for emerge.  Adding one of the additional
118 arguments listed above will give you more specific help information
119 on that subject.  The internal \fBemerge\fR help documentation is
120 updated more frequently than this man page; check it out if you
121 are having problems that this man page does not help resolve.
122 .TP
123 .BR \-\-info
124 Produces a list of information to include in bug reports which aids the 
125 developers when fixing the reported problem.  \fBPlease include this 
126 information when submitting a bug report.\fR  Expanded output can be obtained 
127 with the \fI\-\-verbose\fR option.
128 .TP
129 .BR \-\-metadata
130 Transfers metadata cache from ${PORTDIR}/metadata/cache/ to
131 /var/cache/edb/dep/ as is normally done on the
132 tail end of an rsync update using \fBemerge \-\-sync\fR.  This process
133 populates the cache database that portage uses for pre-parsed lookups of
134 package data.  It does not populate cache for the overlays listed in
135 PORTDIR_OVERLAY.  In order to generate cache for overlays, use \fB\-\-regen\fR.
136 .TP
137 .BR "\-\-prune " (\fB\-P\fR)
138 \fBWARNING: This action can remove important packages!\fR  Removes all but the
139 highest installed version of a package from your system. This action doesn't
140 verify the possible binary compatibility between versions and can thus remove
141 essential dependencies from your system. Use \fB\-\-prune\fR together with
142 \fB\-\-verbose\fR to show reverse dependencies or with \fB\-\-nodeps\fR to
143 ignore all dependencies.
144 .TP
145 .BR \-\-regen
146 Causes portage to check and update the dependency cache of all ebuilds in the 
147 portage tree.  The cache is used to speed up searches and the building of 
148 dependency trees.  This command is not recommended for rsync users as rsync 
149 updates the cache using server\-side caches.  If you do not know the 
150 differences between a 'rsync user' and some other user, then you are a 'rsync 
151 user' :).  Rsync users should simply run \fBemerge \-\-sync\fR to regenerate 
152 the cache.  After a portage update, rsync users may find it convenient to run 
153 \fBemerge \-\-metadata\fR to rebuild the cache as portage does at the end of 
154 a sync operation.
155 .TP
156 .BR "\-\-resume"
157 Resumes the most recent merge list that has been aborted due to an error.
158 Please note that this operation will only return an error on failure.  If there
159 is nothing for portage to do, then portage will exit with a message and a
160 success condition. A resume list will persist until it has been completed in
161 entirety or until another aborted merge list replaces it.  The resume history
162 is capable of storing two merge lists.  After one resume list completes, it is
163 possible to invoke \-\-resume once again in order to resume an older list.
164 .TP
165 .BR "\-\-search " (\fB\-s\fR)
166 Searches for matches of the supplied string in the portage tree.
167 By default emerge uses a case-insensitive simple search, but you can 
168 enable a regular expression search by prefixing the search string with %.
169 For example, \fBemerge \-\-search "%^kde"\fR searches for any package whose 
170 name starts with "kde"; \fBemerge \-\-search "%gcc$"\fR searches for any 
171 package that ends with "gcc"; \fBemerge \-\-search "office"\fR searches for 
172 any package that contains the word "office".  If you want to include the 
173 category into the search string, prepend an @: \fBemerge --search 
174 "%@^dev-java.*jdk"\fR. If you want to search the package descriptions as well, 
175 use the \fB\-\-searchdesc\fR action.
176 .TP
177 .BR "\-\-searchdesc " (\fB\-S\fR)
178 Matches the search string against the description field as well as
179 the package name.  \fBTake caution\fR as the descriptions are also
180 matched as regular expressions.
181 .TP
182 .BR \-\-sync
183 Initiates a portage tree update with one of the rsync.gentoo.org
184 mirrors.  \fBNote that any changes you have made to the portage
185 tree will be erased\fR.  Except for special circumstances, 
186 this uses \fBrsync\fR to do the update.  See \fBmake.conf\fR(5)'s 
187 description of PORTDIR_OVERLAY for a method to avoid deletions.
188 .TP
189 .BR "\-\-unmerge " (\fB\-C\fR)
190 \fBWARNING: This action can remove important packages!\fR Removes
191 all matching packages.  This does no checking of dependencies, so
192 it may remove packages necessary for the proper operation of your
193 system.  Its arguments can be \fIatoms\fR or
194 \fIebuilds\fR. For a dependency aware version of \fB\-\-unmerge\fR,
195 use \fB\-\-depclean\fR or \fB\-\-prune\fR.
196 .TP
197 .BR "\-\-update " (\fB\-u\fR)
198 Updates packages to the best version available, which may not always be the 
199 highest version number due to masking for testing and development.  This will 
200 also update direct dependencies which may not be what you want.  Package atoms
201 specified on the command line are greedy, meaning that unspecific atoms may
202 match multiple installed versions of slotted packages.
203 .TP
204 .BR "\-\-version " (\fB\-V\fR)
205 Displays the version number of \fBemerge\fR.
206 .SH "OPTIONS"
207 .TP
208 .BR "\-\-alphabetical "
209 When displaying USE and other flag output, combines the enabled and
210 disabled lists into one list and sorts the whole list alphabetically.
211 .TP
212 .BR "\-\-ask " (\fB\-a\fR)
213 Before performing the action, display what will take place (server info for
214 \fB\-\-sync\fR, \fB\-\-pretend\fR output for merge, and so forth), then ask
215 whether to proceed with the action or abort.  Using \fB\-\-ask\fR is more
216 efficient than using \fB\-\-pretend\fR and then executing the same command
217 without \fB\-\-pretend\fR, as dependencies will only need to be calculated once.
218 \fBWARNING: If the "Enter" key is pressed at the prompt (with no other input),
219 it is interpreted as acceptance of the first choice.  Note that the input
220 buffer is not cleared prior to the prompt, so an accidental press of the
221 "Enter" key at any time prior to the prompt will be interpreted as a choice!\fR
222 .TP
223 .BR "\-\-buildpkg " (\fB\-b\fR)
224 Tells emerge to build binary packages for all ebuilds processed in
225 addition to actually merging the packages.  Useful for maintainers
226 or if you administrate multiple Gentoo Linux systems (build once,
227 emerge tbz2s everywhere) as well as disaster recovery. The package
228 will be created in the
229 \fI${PKGDIR}/All\fR directory.  An alternative for already\-merged
230 packages is to use \fBquickpkg\fR(1) which creates a tbz2 from the
231 live filesystem.
232 .TP
233 .BR "\-\-buildpkgonly " (\fB\-B\fR)
234 Creates binary packages for all ebuilds processed without actually
235 merging the packages.  This comes with the caveat that all build-time 
236 dependencies must already be emerged on the system.
237 .TP
238 .BR "\-\-changelog " (\fB\-l\fR)
239 Use this in conjunction with the \fB\-\-pretend\fR option.  This will
240 show the ChangeLog entries for all the packages that will be upgraded.
241 .TP
242 .BR "\-\-color < y | n >"
243 Enable or disable color output.  This option will override \fINOCOLOR\fR
244 (see \fBmake.conf\fR(5)) and may also be used to force color output when stdout
245 is not a tty (by default, color is disabled unless stdout is a tty).
246 .TP
247 .BR "\-\-columns"
248 Used alongside \fB\-\-pretend\fR to cause the package name, new version, 
249 and old version to be displayed in an aligned format for easy cut\-n\-paste.
250 .TP
251 .BR "\-\-complete\-graph"
252 This causes \fBemerge\fR to consider the deep dependencies of all
253 packages from the system and world sets. With this option enabled,
254 \fBemerge\fR will bail out if it determines that the given operation will
255 break any dependencies of the packages that have been added to the
256 graph. Like the \fB\-\-deep\fR option, the \fB\-\-complete\-graph\fR
257 option will significantly increase the time taken for dependency
258 calculations. Note that, unlike the \fB\-\-deep\fR option, the
259 \fB\-\-complete\-graph\fR option does not cause any more packages to
260 be updated than would have otherwise been updated with the option disabled.
261 .TP
262 .BR \-\-config\-root=DIR
263 Set the \fBPORTAGE_CONFIGROOT\fR environment variable.
264 .TP
265 .BR "\-\-debug " (\fB\-d\fR)
266 Tells emerge to run the emerge command in \fB\-\-debug\fR mode.  In this
267 mode the bash build environment will run with the \-x option, causing 
268 it to output verbose debugging information to stdout.  This also enables
269 a plethora of other output (mostly dependency resolution messages).
270 .TP
271 .BR "\-\-deep " (\fB\-D\fR)
272 This flag forces
273 \fBemerge\fR to consider the entire dependency tree of packages,
274 instead of checking only the immediate dependencies of the packages.
275 As an example, this catches updates in libraries that are not directly
276 listed in the dependencies of a package.  Also see \fB\-\-with\-bdeps\fR for
277 behavior with respect to build time dependencies that are not strictly
278 required.
279 .TP
280 .BR "\-\-emptytree " (\fB\-e\fR)
281 Reinstalls all world packages and their dependencies to the current USE 
282 specifications while differing from the installed set of packages as 
283 little as possible.  You should run with \fB\-\-pretend\fR first to make 
284 sure the result is what you expect.
285 .TP
286 .BR "\-\-fetchonly " (\fB\-f\fR)
287 Instead of doing any package building, just perform fetches for all
288 packages (fetch things from SRC_URI based upon USE setting).
289 .TP
290 .BR "\-\-fetch\-all\-uri " (\fB\-F\fR)
291 Instead of doing any package building, just perform fetches for all
292 packages (fetch everything in SRC_URI irregardless of USE setting).
293 .TP
294 .BR "\-\-getbinpkg " (\fB\-g\fR)
295 Using the server and location defined in \fIPORTAGE_BINHOST\fR (see 
296 \fBmake.conf\fR(5)), portage will download the information from each binary 
297 package found and it will use that information to help build the dependency 
298 list.  This option implies \fB\-k\fR.  (Use \fB\-gK\fR for binary\-only 
299 merging.)
300 .TP
301 .BR "\-\-getbinpkgonly " (\fB\-G\fR)
302 This option is identical to \fB\-g\fR, as above, except it will not use ANY 
303 information from the local machine.  All binaries will be downloaded from the 
304 remote server without consulting packages existing in the local packages 
305 directory.
306 .TP
307 .BR "\-\-ignore-default-opts"
308 Causes \fIEMERGE_DEFAULT_OPTS\fR (see \fBmake.conf\fR(5)) to be ignored.
309 .TP
310 .BR "\-\-newuse " (\fB\-N\fR)
311 Tells emerge to include installed packages where USE flags have changed since 
312 compilation.  USE flag changes include:
313
314 A USE flag was added to a package.
315 A USE flag was removed from a package.
316 A USE flag was turned on for a package.
317 A USE flag was turned off for a package.
318
319 USE flags may be toggled by your profile as well as your USE and package.use
320 settings.
321 .TP
322 .BR "\-\-noconfmem"
323 Causes portage to disregard merge records indicating that a config file
324 inside of a \fBCONFIG_PROTECT\fR directory has been merged already.  Portage
325 will normally merge those files only once to prevent the user from
326 dealing with the same config multiple times.  This flag will cause the
327 file to always be merged.
328 .TP
329 .BR "\-\-nodeps " (\fB\-O\fR)
330 Merges specified packages without merging any dependencies.  Note that
331 the build may fail if the dependencies aren't satisfied.
332 .TP
333 .BR "\-\-noreplace " (\fB\-n\fR)
334 Skips the packages specified on the command\-line that have already
335 been installed.  Without this option, any packages, ebuilds, or deps
336 you specify on the command\-line \fBwill\fR cause Portage to remerge
337 the package, even if it is already installed.  Note that Portage will
338 not remerge dependencies by default.
339 .TP
340 .BR "\-\-nospinner"
341 Disables the spinner for the session.  The spinner is active when the
342 terminal device is determined to be a TTY.  This flag disables it regardless.
343 .TP
344 .BR "\-\-oneshot " (\fB\-1\fR)
345 Emerge as normal, but do not add the packages to the world file
346 for later updating.
347 .TP
348 .BR "\-\-onlydeps " (\fB\-o\fR)
349 Only merge (or pretend to merge) the dependencies of the packages
350 specified, not the packages themselves.
351 .TP
352 .BR "\-\-pretend " (\fB\-p\fR)
353 Instead of actually performing the merge, simply display what *would*
354 have been installed if \fB\-\-pretend\fR weren't used.  Using \fB\-\-pretend\fR
355 is strongly recommended before installing an unfamiliar package.  In
356 the printout:
357 .br 
358  
359 .br 
360 \fIN\fR = new (not yet installed)
361 .br 
362 \fIS\fR = new SLOT installation (side-by-side versions) 
363 .br 
364 \fIU\fR = updating (to another version)
365 .br 
366 \fID\fR = downgrading (best version seems lower)
367 .br 
368 \fIR\fR = replacing (remerging same version))
369 .br 
370 \fIF\fR = fetch restricted (must be manually downloaded)
371 .br 
372 \fIf\fR = fetch restricted (already downloaded)
373 .br 
374 \fIB\fR = blocked by an already installed package
375 .TP
376 .BR "\-\-quiet " (\fB\-q\fR)
377 Results may vary, but the general outcome is a reduced or condensed
378 output from portage's displays.
379 .TP
380 .BR "\-\-reinstall changed\-use"
381 Tells emerge to include installed packages where USE flags have
382 changed since installation.  Unlike \fB\-\-newuse\fR, this option does
383 not trigger reinstallation when flags that the user has not
384 enabled are added or removed.
385 .TP
386 .BR "\-\-skipfirst"
387 This option is only valid when used with \fB\-\-resume\fR.  It removes the 
388 first package in the resume list so that a merge may continue in the presence 
389 of an uncorrectable or inconsequential error.  This should only be used in 
390 cases where skipping the package will not result in failed dependencies.
391 .TP
392 .BR "\-\-tree " (\fB\-t\fR)
393 Shows the dependency tree for the given target by indenting dependencies.
394 This is only really useful in combination with \fB\-\-emptytree\fR or 
395 \fB\-\-update\fR and \fB\-\-deep\fR.
396 .TP
397 .BR "\-\-usepkg " (\fB\-k\fR) 
398 Tells emerge to use binary packages (from $PKGDIR) if they are available, thus 
399 possibly avoiding some time\-consuming compiles.  This option is useful for CD 
400 installs; you can export PKGDIR=/mnt/cdrom/packages and then use this option to 
401 have emerge "pull" binary packages from the CD in order to satisfy dependencies.
402 .TP
403 .BR "\-\-usepkgonly " (\fB\-K\fR)
404 Tells emerge to only use binary packages (from $PKGDIR).  All the binary 
405 packages must be available at the time of dependency calculation or emerge 
406 will simply abort.  Portage does not use $PORTDIR when calculating dependency 
407 information so all masking information is ignored.
408 .TP
409 .BR "\-\-verbose " (\fB\-v\fR)
410 Tell emerge to run in verbose mode.  Currently this flag causes emerge to print 
411 out GNU info errors, if any, and to show the USE flags that will be used for 
412 each package when pretending. The following symbols are affixed to USE flags
413 in order to indicate their status:
414 .br
415
416 .br
417 \fI- prefix\fR     = not enabled (either disabled or removed)
418 .br
419 \fI* suffix\fR     = transition to or from the enabled state
420 .br
421 \fI% suffix\fR     = newly added or removed
422 .br
423 \fI() circumfix\fR = forced, masked, or removed
424 .TP
425 .BR "\-\-with\-bdeps < y | n >"
426 In dependency calculations, pull in build time dependencies
427 that are not strictly required. This defaults to \'n\' for
428 installation actions, meaning they will not be installed, and
429 \'y\' for the \fB\-\-depclean\fR action, meaning they will not be removed.
430 This setting can be added to
431 \fBEMERGE_DEFAULT_OPTS\fR (see make.conf(5)) and later overridden via the
432 command line.
433 .SH "ENVIRONMENT OPTIONS"
434 .TP
435 \fBROOT\fR = \fI[path]\fR
436 Use \fBROOT\fR to specify the target root filesystem to be used for
437 merging packages or ebuilds.  This variable can be set in \fBmake.conf\fR(5)
438 when \fBPORTAGE_CONFIGROOT\fR has a value other than /.
439 .br
440 Defaults to /.
441 .TP
442 \fBPORTAGE_CONFIGROOT\fR = \fI[path]\fR
443 Use \fBPORTAGE_CONFIGROOT\fR to specify the location for various portage 
444 configuration files
445 (see \fBFILES\fR for a detailed list of configuration files).  This variable
446 can be set via the \fB\-\-config\-root\fR option.
447 .br
448 Defaults to /.
449 .SH "OUTPUT"
450 When utilizing \fBemerge\fR with the \fB\-\-pretend\fR and \fB\-\-verbose\fR 
451 flags, the output may be a little hard to understand at first.  This section
452 explains the abbreviations.
453 .TP
454 .B [blocks B     ] app\-text/dos2unix (from pkg app\-text/hd2u\-0.8.0)
455 Dos2unix is Blocking hd2u from being emerged.  Blockers are defined when
456 two packages will clobber each others files, or otherwise cause some form
457 of breakage in your system.  However, blockers usually do not need to be
458 simultaneously emerged because they usually provide the same functionality.
459 .TP
460 .B [ebuild  N    ] app\-games/qstat\-25c
461 Qstat is New to your system, and will be emerged for the first time.
462 .TP
463 .B [ebuild  NS   ] dev-libs/glib-2.4.7
464 You already have a version of glib installed, but a 'new' version in 
465 a different SLOT is available.
466 .TP
467 .B [ebuild   R   ] sys\-apps/sed\-4.0.5
468 Sed 4.0.5 has already been emerged, but if you run the command, then 
469 portage will Re\-emerge the specified package (sed in this case).
470 .TP
471 .B [ebuild    F  ] media\-video/realplayer\-8\-r6
472 The realplayer package requires that you Fetch the sources manually.  
473 When you attempt to emerge the package, if the sources are not found, 
474 then portage will halt and you will be provided with instructions on how 
475 to download the required files.
476 .TP
477 .B [ebuild    f  ] media\-video/realplayer\-8\-r6
478 The realplayer package's files are already downloaded.
479 .TP
480 .B [ebuild     U ] net\-fs/samba\-2.2.8_pre1 [2.2.7a]
481 Samba 2.2.7a has already been emerged and can be Updated to version 
482 2.2.8_pre1.
483 .TP
484 .B [ebuild     UD] media\-libs/libgd\-1.8.4 [2.0.11]
485 Libgd 2.0.11 is already emerged, but if you run the command, then 
486 portage will Downgrade to version 1.8.4 for you.
487 .br 
488 This may occur if a newer version of a package has been masked because it is
489 broken or it creates a security risk on your system and a fix has not been
490 released yet.
491 .br 
492 Another reason this may occur is if a package you are trying to emerge requires
493 an older version of a package in order to emerge successfully.  In this case,
494 libgd 2.x is incompatible with libgd 1.x.  This means that packages that were
495 created with libgd 1.x will not compile with 2.x and must downgrade libgd first
496 before they can emerge.
497 .TP
498 .B [ebuild     U ] sys\-devel/distcc\-2.16 [2.13\-r1] USE="ipv6* \-gtk \-qt%"
499 Here we see that the make.conf variable \fBUSE\fR affects how this package is
500 built.  In this example, ipv6 optional support is enabled and both gtk and qt
501 support are disabled.  The asterisk following ipv6 indicates that ipv6 support
502 was disabled the last time this packages was installed.  The percent sign
503 following qt indicates that the qt option has been added to the package since
504 it was last installed.  For information about all \fBUSE\fR symbols, see the
505 \fB\-\-verbose\fR option documentation above.
506 .br
507 \fB*Note:\fR Flags that haven't changed since the last install are only
508 displayed when you use the \fB\-\-pretend\fR and \fB\-\-verbose\fR options.
509 Using the \fB\-\-quiet\fR option will prevent all information from being
510 displayed.
511 .SH "NOTES"
512 You should almost always precede any package install or update attempt with a 
513 \fB\-\-pretend\fR install or update.  This lets you see how much will be 
514 done, and shows you any blocking packages that you will have to rectify.  
515 This goes doubly so for the \fBsystem\fR and \fBworld\fR sets, which can 
516 update a large number of packages if the portage tree has been particularly 
517 active.
518 .LP
519 You also want to typically use \fB\-\-update\fR, which ignores packages that 
520 are already fully updated but updates those that are not.
521 .LP
522 When you install a package with uninstalled dependencies and do
523 not explicitly state those dependencies in the list of parameters,
524 they will not be added to the world file.  If you want them to be
525 detected for world updates, make sure to explicitly list them as
526 parameters to \fBemerge\fR.
527 .LP
528 \fBUSE variables\fR may be specified on the command line to
529 override those specified in the default locations, letting you
530 avoid using some dependencies you may not want to have.  \fBUSE
531 flags specified on the command line are NOT remembered\fR.  For
532 example, \fBenv USE="\-X \-gnome" emerge mc\fR will emerge mc with
533 those USE settings (on Bourne-compatible shells you may omit the \fBenv\fR
534 part).  If you want those USE settings to be more 
535 permanent, you can put them in /etc/portage/package.use instead.
536 .LP
537 If \fBemerge \-\-update system\fR or \fBemerge \-\-update world\fR
538 fails with an error message, it may be that an ebuild uses some
539 newer feature not present in this version of \fBemerge\fR.  You
540 can use \fBemerge \-\-update portage\fR to upgrade to the lastest
541 version, which should support any necessary new features.
542 .SH "MASKED PACKAGES"
543 \fINOTE: Please use caution when using development packages.  Problems
544 and bugs resulting from misusing masked packages drains Gentoo
545 developer time.  Please be sure you are capable of handling any problems
546 that may ensue.\fR
547 .LP
548 Masks in \fBportage\fR have many uses: they allow a
549 testing period where the packages can be used in live machines; they
550 prevent the use of a package when it will fail; and they mask existing
551 packages that are broken or could pose a security risk.  Read below
552 to find out how to unmask in various cases.  Also note that if you give 
553 \fBemerge\fR an ebuild, then all forms of masking will be ignored and
554 \fBemerge\fR will attempt to emerge the package.
555 .TP
556 .BR package.mask
557 The \fBpackage.mask\fR file primarily blocks the use of packages that cause
558 problems or are known to have issues on different systems.  It resides in
559 \fI/usr/portage/profiles\fR.
560 .TP
561 .BR CHOST
562 The \CHOST\fR variable in \fBmake.conf\fR(5) is used to mask binary packages
563 that have been built with a different \CHOST\fR setting. The only
564 way to unmask such a binary package is to change the \CHOST\fR environment
565 variable so that it exactly matches that of the binary package.
566 .TP
567 .BR EAPI
568 The \fBEAPI\fR variable in an \fBebuild\fR(5) file is used to mask packages
569 that are not supported by the current version of portage. Packages masked by
570 \fBEAPI\fR can only be installed after portage has been upgraded.
571 .TP
572 .BR KEYWORDS
573 The \fBKEYWORDS\fR variable in an \fBebuild\fR file is also used for masking 
574 a package still in testing.  There are architecture\-specific keywords for 
575 each package that let \fBportage\fR know which systems are compatible with 
576 the package.  Packages which compile on an architecture, but have not been 
577 proven to be "stable", are masked with a tilde (\fB~\fR) in front of the 
578 architecture name.  \fBemerge\fR examines the \fBACCEPT_KEYWORDS\fR environment 
579 variable to allow or disallow the emerging of a package masked by 
580 \fBKEYWORDS\fR.  To inform \fBemerge\fR that it should build these 'testing' 
581 versions of packages, you should update your 
582 \fI/etc/portage/package.keywords\fR file to list the packages you want the 
583 \'testing\' version.  See \fBportage\fR(5) for more information.
584 .SH "CONFIGURATION FILES"
585 Portage has a special feature called "config file protection". The purpose of
586 this feature is to prevent new package installs from clobbering existing
587 configuration files. By default, config file protection is turned on for /etc
588 and the KDE configuration dirs; more may be added in the future.
589 .LP
590 When Portage installs a file into a protected directory tree like /etc, any
591 existing files will not be overwritten. If a file of the same name already
592 exists, Portage will change the name of the to\-be\-installed file from 'foo' to
593 \'._cfg0000_foo\'. If \'._cfg0000_foo\' already exists, this name becomes
594 \'._cfg0001_foo\', etc. In this way, existing files are not overwritten,
595 allowing the administrator to manually merge the new config files and avoid any
596 unexpected changes.
597 .LP
598 In addition to protecting overwritten files, Portage will not delete any files
599 from a protected directory when a package is unmerged. While this may be a
600 little bit untidy, it does prevent potentially valuable config files from being
601 deleted, which is of paramount importance.
602 .LP
603 Protected directories are set using the \fICONFIG_PROTECT\fR variable, normally
604 defined in /etc/make.globals. Directory exceptions to the CONFIG_PROTECTed
605 directories can be specified using the \fICONFIG_PROTECT_MASK\fR variable. To find
606 files that need to be updated in /etc, type \fBfind /etc \-iname \'._cfg????_*\'\fR.
607 .LP
608 You can disable this feature by setting \fICONFIG_PROTECT="\-*"\fR in /etc/make.conf.
609 Then, Portage will mercilessly auto\-update your config files. Alternatively,
610 you can leave Config File Protection on but tell Portage that it can overwrite
611 files in certain specific /etc subdirectories. For example, if you wanted
612 Portage to automatically update your rc scripts and your wget configuration,
613 but didn't want any other changes made without your explicit approval, you'd
614 add this to /etc/make.conf:
615 .LP
616 .I CONFIG_PROTECT_MASK="/etc/wget /etc/rc.d"
617 .LP
618 Tools such as dispatch\-conf, cfg\-update, and etc\-update are also available to
619 aid in the merging of these files. They provide interactive merging and can
620 auto\-merge trivial changes.
621 .SH "REPORTING BUGS"
622 Please report any bugs you encounter through our website:
623 .LP
624 \fBhttp://bugs.gentoo.org/\fR
625 .LP
626 Please include the output of \fBemerge \-\-info\fR when you submit your
627 bug report.
628 .SH "AUTHORS"
629 .nf
630 Daniel Robbins <drobbins@gentoo.org>
631 Geert Bevin <gbevin@gentoo.org>
632 Achim Gottinger <achim@gentoo.org>
633 Nicholas Jones <carpaski@gentoo.org>
634 Phil Bordelon <phil@thenexusproject.org>
635 Mike Frysinger <vapier@gentoo.org>
636 Marius Mauch <genone@gentoo.org>
637 .fi
638 .SH "FILES"
639 Here is a common list of files you will probably be interested in.  For a 
640 complete listing, please refer to the \fBportage\fR(5) man page.
641 .TP
642 .B /var/lib/portage/world
643 Contains a list of all user\-specified packages.  You can safely edit
644 this file, adding packages that you want to be considered in \fBworld\fR
645 set updates and removing those that you do not want to be considered.
646 .TP
647 .B /etc/make.conf
648 Contains variables for the build process, overriding those in
649 \fBmake.globals\fR.
650 .TP
651 .B /etc/portage/color.map
652 Contains variables customizing colors.
653 .TP
654 .B /etc/dispatch\-conf.conf
655 Contains settings to handle automatic updates/backups of configuration 
656 files.
657 .TP
658 .B /etc/make.profile/make.defaults
659 Contains profile\-specific variables for the build process.  \fBDo not
660 edit this file\fR.
661 .TP
662 .B /etc/make.profile/use.defaults
663 Contains a list of packages which, if installed, cause the respective USE 
664 flag to be enabled by default.  \fBDo not edit this file\fR.
665 .TP
666 .B /usr/portage/profiles/use.desc
667 Contains the master list of USE flags with descriptions of their
668 functions.  \fBDo not edit this file\fR.
669 .TP
670 .B /etc/make.profile/virtuals
671 Contains a list of default packages used to resolve virtual dependencies.
672 \fBDo not edit this file\fR.
673 .TP
674 .B /etc/make.profile/packages
675 Contains a list of packages used for the base system.  The \fBsystem\fR
676 and \fBworld\fR sets consult this file.  \fBDo not edit this file\fR.
677 .TP
678 .B /etc/make.globals
679 Contains the default variables for the build process.  \fBDo not edit
680 this file\fR.
681 .SH "SEE ALSO"
682 .BR "emerge \-\-help",
683 .BR quickpkg (1),
684 .BR ebuild (1),
685 .BR ebuild (5),
686 .BR make.conf (5),
687 .BR color.map (5),
688 .BR portage (5)
689 .LP
690 A number of helper applications reside in \fI/usr/lib/portage/bin\fR.
691 .LP
692 The \fBapp\-portage/gentoolkit\fR package contains useful scripts such as 
693 \fBequery\fR (a package query tool).