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

NAME

6       cdist-type__dpkg_architecture  -  Handles  foreign architectures on de‐
7       bian-like systems managed by dpkg
8

DESCRIPTION

10       This type handles foreign architectures on systems managed by  dpkg(1).
11       The  object  id is the name of the architecture accepted by dpkg, which
12       should be added or removed.
13
14       If the architecture is not setup on the system, it adds a new architec‐
15       ture  as  a  new foreign architecture in dpkg. Then, it updates the apt
16       package index to make packages from the new architecture available.
17
18       If the architecture should be removed, it will remove it if it  is  not
19       the  base architecture on where the system was installed on. Before it,
20       it will purge every package based on the "to be  removed"  architecture
21       via apt to be able to remove the selected architecture.
22

REQUIRED PARAMETERS

24       None.
25

OPTIONAL PARAMETERS

27       state  present or absent. Defaults to present.
28

MESSAGES

30       added  Added the specified architecture
31
32       removed
33              Removed the specified architecture
34

ABORTS

36       Aborts in the following cases:
37
38       If dpkg(1) is not available. It will abort with a proper error message.
39
40       If  the architecture is the same as the base architecture the system is
41       build upon it (returned by dpkg --print-architecture) and it should  be
42       removed.
43
44       It will fail if it can not execute apt(8). It is assumed that it is al‐
45       ready installed.
46

EXAMPLES

48          # add i386 (32 bit) architecture
49          __dpkg_architecture i386
50
51          # remove it again :)
52          __dpkg_architecture i386 --state absent
53

SEE ALSO

55       Multiarch on Debian systems
56
57       How to setup multiarch on Debian
58
59       dpkg(1) cdist-type__package_dpkg(7) cdist-type__package_apt(7)
60
61       Useful commands:
62
63          # base architecture installed on this system
64          dpkg --print-architecture
65
66          # extra architectures added
67          dpkg --print-foreign-architectures
68

AUTHORS

70       Matthias Stecher <matthiasstecher at gmx.de>
71

COPYING

73       Copyright (C) 2020 Matthias Stecher. You  can  redistribute  it  and/or
74       modify it under the terms of the GNU General Public License as ublished
75       by the Free Software Foundation, either version 3 of  the  License,  or
76       (at your option) any later version.
77
79       ungleich GmbH 2021
80
81
82
83
846.9.8                            Aug 24, 2021 CDIST-TYPE__DPKG_ARCHITECTURE(7)
Impressum