|
|
发表于 2003-11-8 17:52:11
|
显示全部楼层
索性我们把参数都弄明白。。。。
Options:
--buildpkg (-b short option)
tell emerge to build binary packages for all ebuilds processed
(in addition to actually merging the packages. Useful for
maintainers or if you administrate multiple Gentoo Linux
systems (build once, emerge tbz2s everywhere).
--buildpkgonly (-B short option)
Creates a binary package, but does not merge it to the
system. This has the restriction that unsatisfied dependencies
must not exist for the desired package as they cannot be used if
they do not exist on the system.
--changelog (-l short option)
When pretending, also display the ChangeLog entries for packages
that will be upgraded.
--columns
Display the pretend output in a tabular form. Versions are
aligned vertically.
--debug (-d short option)
Tell emerge to run the ebuild command in --debug mode. In this
mode, the bash build environment will run with the -x option,
causing it to output verbose debug information print to stdout.
--debug is great for finding bash syntax errors as providing
very verbose information about the dependency and build process.
--deep (-D short option)
When used in conjunction with --update, this flag forces emerge
to consider the entire dependency tree of packages, instead of
checking only the immediate dependencies of the packages. As an
example, this catches updates in libraries that are not directly
listed in the dependencies of a package.
--emptytree (-e short option)
Virtually tweaks the tree of installed packages to only contain
glibc, this is great to use together with --pretend. This makes
it possible for developers to get a complete overview of the
complete dependency tree of a certain package.
--fetchonly (-f short option)
Instead of doing any package building, just perform fetches for
all packages (main package as well as all dependencies.) When
used in combination with --pretend all the SRC_URIs will be
displayed multiple mirrors per line, one line per file.
--getbinpkg (-g short option)
Using the server and location defined in PORTAGE_BINHOST, portage
will download the information from each binary file there and it
will use that information to help build the dependency list. This
option implies '-k'. (Use -gK for binary-only merging.)
--getbinpkgonly (-G short option)
This option is identical to -g, as above, except it will not use
ANY information from the local machine. All binaries will be
downloaded from the remote server without consulting packages
existing in the packages directory.
--noconfmem
Portage keeps track of files that have been placed into
CONFIG_PROTECT directories, and normally it will not merge the
same file more than once, as that would become annoying. This
can lead to problems when the user wants the file in the case
of accidental deletion. With this option, files will always be
merged to the live fs instead of silently dropped.
--nodeps (-O short option)
Merge specified packages, but don't merge any dependencies.
Note that the build may fail if deps aren't satisfied.
--noreplace (-n short option)
Skip the packages specified on the command-line that have
already been installed. Without this option, any packages,
ebuilds, or deps you specify on the command-line *will* cause
Portage to remerge the package, even if it is already installed.
Note that Portage won't remerge dependencies by default.
--nospinner
Disables the spinner regardless of terminal type.
--oneshot
Emerge as normal, but don't add packages to the world profile for
later updating. This prevents consideration of this package
unless this package is depended upon by another package.
--onlydeps (-o short option)
Only merge (or pretend to merge) the dependencies of the
specified packages, not the packages themselves.
--pretend (-p short option)
instead of actually performing the merge, simply display what
ebuilds and tbz2s *would* have been installed if --pretend
weren't used. Using --pretend is strongly recommended before
installing an unfamiliar package. In the printout, N = new,
U = updating, R = replacing, B = blocked by an already installed
package, D = possible downgrading. --verbose causes affecting
use flags to be printed out accompanied by a '+' for enabled
and a '-' for disabled flags.
--quiet (-q short option)
Effects vary, but the general outcome is a reduced or condensed
output from portage's displays.
--resume
Resumes the last merge operation. Can be treated just like a
regular merge as --pretend and other options work along side.
'emerge --resume' only returns an error on failure. Nothing to
do exits with a message and a success condition.
--searchdesc (-S short option)
Matches the search string against the description field as well
the package's name. Take caution as the descriptions are also
matched as regular expressions.
emerge -S html
emerge -S applet
emerge -S 'perl.*module'
--skipfirst
This option is only valid in a resume situation. It removes the
first package in the resume list so that a merge may continue in
the presence of an uncorrectable or inconsequential error. This
should only be used in cases where skipping the package will not
result in failed dependencies.
--update (-u short option)
Updates packages to the best version available, which may not
always be the highest version number due to masking for testing
and development.
--upgradeonly (-U short option)
Updates packages, but excludes updates that would result in a
lower version of the package being installed. SLOTs are
considered at a basic level.
--usepkg (-k short option)
Tell emerge to use binary packages (from $PKGDIR) if they are
available, thus possibly avoiding some time-consuming compiles.
This option is useful for CD installs; you can export
PKGDIR=/mnt/cdrom/packages and then use this option to have
emerge "pull" binary packages from the CD in order to satisfy
dependencies.
--usepkgonly (-K short option)
Like --usepkg above, except this only allows the use of binary
packages, and it will abort the emerge if the package is not
available at the time of dependency calculation.
--verbose (-v short option)
Effects vary, but the general outcome is an increased or expanded
display of content in portage's displays.
--version (-V short option)
Displays the currently installed version of portage along with
other information useful for quick reference on a system. See
emerge info for more advanced information. |
|