14.84. cdist-type__package_emerge(7)

14.84.1. NAME

cdist-type__package_emerge - Manage packages with portage

14.84.2. DESCRIPTION

Portage is usually used on the gentoo distribution to manage packages. This type requires app-portage/gentoolkit installed on the target host. cdist-type__package_emerge_dependencies is supposed to install the needed packages on the target host.

14.84.3. REQUIRED PARAMETERS

None

14.84.4. OPTIONAL PARAMETERS

name
If supplied, use the name and not the object id as the package name.
state
Either "present" or "absent", defaults to "present".
version
If supplied, use to install or uninstall a specific version of the package named.

14.84.5. EXAMPLES

# Ensure sys-devel/gcc is installed
__package_emerge sys-devel/gcc --state present

# If you want a specific version of a package
__package_emerge app-portage/gentoolkit --state present --version 0.3.0.8-r2

# Remove package
__package_emerge sys-devel/gcc --state absent

14.84.6. SEE ALSO

cdist-type__package(7), cdist-type__package_emerge_dependencies(7)

14.84.7. AUTHORS

Thomas Oettli <otho--@--sfs.biz>

14.84.8. COPYING

Copyright (C) 2013 Thomas Oettli. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.