1CDIST-TYPE__PACKAGE_DPKG(7)          cdist         CDIST-TYPE__PACKAGE_DPKG(7)
2
3
4

NAME

6       cdist-type__package_dpkg - Manage packages with dpkg
7

DESCRIPTION

9       This type is used on Debian and variants (like Ubuntu) to install pack‐
10       ages that are provided locally as *.deb files.
11
12       The object given to this type must be the name of the deb package.  The
13       filename  of  the  deb package has to follow Debian naming conventions,
14       i.e.        ${binary:Package}_${Version}_${Architecture}.deb       (see
15       dpkg-query(1) for details).
16

OPTIONAL PARAMETERS

18       state  present or absent, defaults to present.
19

REQUIRED PARAMETERS

21       source path to the *.deb package
22

BOOLEAN PARAMETERS

24       purge-if-absent
25              If  this parameter is given when state is absent, the package is
26              purged from the system (using --purge).
27

EXPLORER

29       pkg_state
30              Returns the full package name if  package  is  installed,  empty
31              otherwise.
32

MESSAGES

34       installed
35              The deb-file was installed.
36
37       removed (--remove)
38              The package was removed, keeping config.
39
40       removed (--purge)
41              The package was removed including config (purged).
42

EXAMPLES

44          # Install foo and bar packages
45          __package_dpkg foo_0.1_all.deb --source /tmp/foo_0.1_all.deb
46          __package_dpkg bar_1.4.deb --source $__type/files/bar_1.4.deb
47
48          # uninstall baz:
49          __package_dpkg baz_1.4_amd64.deb \
50              --source $__type/files/baz_1.4_amd64.deb \
51              --state "absent"
52          # uninstall baz and also purge config-files:
53          __package_dpkg baz_1.4_amd64.deb \
54              --source $__type/files/baz_1.4_amd64.deb \
55              --purge-if-absent \
56              --state "absent"
57

SEE ALSO

59       cdist-type__package(7), dpkg-query(1)
60

AUTHORS

62       Tomas Pospisek <tpo_deb--@--sourcepole.ch>
63       Thomas Eckert <tom--@--it-eckert.de>
64
65

COPYING

67       Copyright  (C) 2013 Tomas Pospisek. You can redistribute it and/or mod‐
68       ify it under the terms of the GNU General Public License  as  published
69       by  the  Free  Software Foundation, either version 3 of the License, or
70       (at your option) any later version.  This  type  is  based  on  __pack‐
71       age_apt.
72
74       ungleich GmbH 2019
75
76
77
78
796.4.0                            Jan 04, 2020      CDIST-TYPE__PACKAGE_DPKG(7)
Impressum