Gentoo emerge 参数说明[1]
[入库:2006年2月23日] [更新:2007年3月24日]
SYNOPSIS
- emerge
- [options] [action] [ebuild | tbz2file | class | dependency] ...
- emerge
- --sync | --info | --version
- emerge
- --search somestring
- emerge
- --help [system | config | sync]
DESCRIPTION
emerge is the definitive command-line interface to the Portage system. It is primarily used for installing packages, and
emerge can automatically handle any dependencies that the desired package has.
emerge can also update the
portage tree, making new and updated packages available.
emerge 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.
EBUILDS, TBZ2S, CLASSES AND DEPENDENCIES
emerge primarily installs packages. You can specify packages to install in one of four main ways: an
ebuild, a
tbz2file, a
class, or a
dependency.
- ebuild
- An ebuild must be, at a minimum, a valid Portage package directory name without a version or category, such as portage or python. Both categories and version numbers may be used in addition, such as sys-apps/portage or =python-2.2.1-r2. emerge ignores a trailing slash so that filename completion can be used. The ebuild may also be an actual filename, such as /usr/portage/app-admin/python/python-2.2.1-r2.ebuild. WARNING: The implementation of emerge /path/to/ebuild is broken and so this syntax shouldn't be used.
- tbz2file
- A tbz2file must be a valid .tbz2 created with ebuild <package>-<version>.ebuild package or emerge --buildpkg [category/]<package> or quickpkg /var/db/pkg/<category>/<package>.
- class
- Package classes are a convenient shorthand for large groups of packages. Two classes are currently supported: system and world. system refers to a set of packages deemed necessary for your system to run properly. world contains all of the packages in system, along with any other packages listed in /var/lib/portage/world. [See FILES below for more information.] Note that these commands are generally used in conjunction with --update.
- dependency
- A dependency describes bounds on a package that you wish to install. See portage(5) for the details on these 'atoms'. For example, >=dev-lang/python-2.2.1-r2 matches the latest available version of Python greater than or equal to 2.2.1-r2. Similarly, <dev-lang/python-2.0 matches the latest available version of Python before 2.0. Note that in many shells you will need to escape characters such as '<' and '='; use single- or double-quotes around the dependency to get around escaping problems.
ACTIONS
- No action
- If no action is specified, the action is to merge in the specified packages, satisfying any dependencies that they may have. The arguments can be ebuilds, tbz2s, classes, or dependencies. Note that you need to use the --usepkg option if you want to install a tbz2. The packages are added to the world file at the end, so that they are considered for later updating.
- --clean (-c)
- Cleans the system by removing packages that will not affect the functionality of the system. The arguments can be ebuilds, classes, or dependencies. For example, emerge clean binutils cleans out old versions of binutils; emerge --clean net-www/mozilla-0.9.9-r2 cleans out that specific version of Mozilla. This is generally safe to use. Note that --clean does not remove unslotted packages.
- --depclean
- Determines all packages installed on the system that have no explicit reason for being there.
本文关键:Gentoo emerge 参数说明
本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)