.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "CDIST-TYPE__PACKAGE_APT" "7" "Jan 15, 2023" "7.0.0" "cdist" .SH NAME .sp cdist\-type__package_apt \- Manage packages with apt\-get .SH DESCRIPTION .sp apt\-get is usually used on Debian and variants (like Ubuntu) to manage packages. The package will be installed without recommended or suggested packages. If such packages are required, install them separatly or use the parameter \fB\-\-install\-recommends\fP\&. .sp This type will also update package index, if it is older than one day, to avoid missing package error messages. .SH REQUIRED PARAMETERS .sp None .SH OPTIONAL PARAMETERS .INDENT 0.0 .TP .B name If supplied, use the name and not the object id as the package name. .TP .B state Either "present" or "absent", defaults to "present" .TP .B target\-release Passed on to apt\-get install, see apt\-get(8). Essentially allows you to retrieve packages from a different release .TP .B version The version of the package to install. Default is to install the version chosen by the local package manager. .UNINDENT .SH BOOLEAN PARAMETERS .INDENT 0.0 .TP .B install\-recommends If the package will be installed, it also installs recommended packages with it. It will not install recommended packages if the original package is already installed. .sp In most cases, it is recommended to install recommended packages separatly to control which additional packages will be installed to avoid useless installed packages. .TP .B purge\-if\-absent If this parameter is given when state is \fIabsent\fP, the package is purged from the system (using \fI\-\-purge\fP). .UNINDENT .SH EXAMPLES .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C # Ensure zsh in installed __package_apt zsh \-\-state present # In case you only want *a* webserver, but don\(aqt care which one __package_apt webserver \-\-state present \-\-name nginx # Remove obsolete package __package_apt puppet \-\-state absent .ft P .fi .UNINDENT .UNINDENT .SH SEE ALSO .sp \fBcdist\-type__package\fP(7) .SH AUTHORS .sp Nico Schottelius <\fI\%nico\-cdist\-\-@\-\-schottelius.org\fP> .SH COPYING .sp Copyright (C) 2011\-2012 Nico Schottelius. 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. .SH COPYRIGHT ungleich GmbH 2021 .\" Generated by docutils manpage writer. .