1CDIST-TYPE__PACKAGE_APT(7) cdist CDIST-TYPE__PACKAGE_APT(7)
2
3
4
6 cdist-type__package_apt - Manage packages with apt-get
7
9 apt-get is usually used on Debian and variants (like Ubuntu) to manage
10 packages. The package will be installed without recommended or sug‐
11 gested packages. If such packages are required, install them separatly
12 or use the parameter --install-recommends.
13
14 This type will also update package index, if it is older than one day,
15 to avoid missing package error messages.
16
18 None
19
21 name If supplied, use the name and not the object id as the package
22 name.
23
24 state Either "present" or "absent", defaults to "present"
25
26 target-release
27 Passed on to apt-get install, see apt-get(8). Essentially
28 allows you to retrieve packages from a different release
29
30 version
31 The version of the package to install. Default is to install the
32 version chosen by the local package manager.
33
35 install-recommends
36 If the package will be installed, it also installs recommended
37 packages with it. It will not install recommended packages if
38 the original package is already installed.
39
40 In most cases, it is recommended to install recommended packages
41 separatly to control which additional packages will be installed
42 to avoid useless installed packages.
43
44 purge-if-absent
45 If this parameter is given when state is absent, the package is
46 purged from the system (using --purge).
47
49 # Ensure zsh in installed
50 __package_apt zsh --state present
51
52 # In case you only want *a* webserver, but don't care which one
53 __package_apt webserver --state present --name nginx
54
55 # Remove obsolete package
56 __package_apt puppet --state absent
57
59 cdist-type__package(7)
60
62 Nico Schottelius <nico-cdist--@--schottelius.org>
63
65 Copyright (C) 2011-2012 Nico Schottelius. You can redistribute it
66 and/or modify it under the terms of the GNU General Public License as
67 published by the Free Software Foundation, either version 3 of the
68 License, or (at your option) any later version.
69
71 ungleich GmbH 2020
72
73
74
75
766.9.4 Dec 21, 2020 CDIST-TYPE__PACKAGE_APT(7)