---
name: "cdist-type__package"
section: "7"
platform: "linux"
package: "cdist"
version: "7.0.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cdist-type__package"
---

# cdist-type\_\_package(7)

Manage packages

## NAME

cdist-type\_\_package - Manage packages

## DESCRIPTION

This cdist type allows you to install or uninstall packages on the target. It dispatches the actual work to the package system dependent types.

## REQUIRED PARAMETERS

None

## OPTIONAL PARAMETERS

- **name**

  The name of the package to install. Default is to use the object\_id as the package name.

- **version**

  The version of the package to install. Default is to install the version chosen by the local package manager.

- **type**

  The package type to use. Default is determined based on the $os explorer variable. e.g. \* \_\_package\_apt for Debian \* \_\_package\_emerge for Gentoo

- **state**

  Either "present" or "absent", defaults to "present"

## EXAMPLES

```
# Install the package vim on the target
__package vim --state present
# Same but install specific version
__package vim --state present --version 7.3.50
# Force use of a specific package type
__package vim --state present --type __package_apt
```

## AUTHORS

Steven Armstrong \<*steven-cdist--@--armstrong.cc*\>

## COPYING

Copyright (C) 2011 Steven Armstrong. 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.

## COPYRIGHT

ungleich GmbH 2021
