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