CDIST-TYPE__DPKG_ARCHITECTURE(7)
β¨ cdist-type__dpkg_architecture β¨
okay bestie, welcome to the cdist-type__dpkg_architecture manual page, section 7 of the cdist docs π
this one is all about foreign architectures on debian-ish systems that dpkg is running the show on π¦
πΈ NAME πΈ
cdist-type__dpkg_architecture β handles foreign architectures on debian-like systems managed by dpkg π
π DESCRIPTION π
So here's the tea β this type handles foreign architectures on systems managed by dpkg(1). The object id is literally the name of the architecture that dpkg accepts β the one you wanna add or remove. no cap π
If the architecture isn't set up on the system yet, it adds it as a brand new foreign architecture in dpkg. And then? It updates the apt package index so packages from that new architecture are actually available. iconic behaviour tbh β¨
If the architecture should be removed instead, it'll remove it β but only if it's not the base architecture the system was originally installed on π Before doing that, it purges every package based on the "to be removed" architecture via apt, so that the selected architecture can actually be removed. it's giving thorough π§Ή
π«Ά REQUIRED PARAMETERS π«Ά
None. nothing. zero. nada. you don't have to pass anything bestie πβ¨
π OPTIONAL PARAMETERS π
stateβpresentorabsent. Defaults topresentπ
π MESSAGES π
addedβ added the specified architecture πremovedβ removed the specified architecture ποΈβ¨
π ABORTS π
It aborts in the following cases, and bestie, pay attention:
- If
dpkg(1)isn't available. It will abort with a proper error message β no cryptic nonsense, we're polite here π«Ά - If the architecture is the same as the base architecture the system is built upon (that's the one returned by
dpkg --print-architecture) and it should be removed. like, you literally cannot remove the thing your whole system is standing on π - It will fail if it can't execute
apt(8). It's assumed that it's already installed β that's on you, bestie π
π EXAMPLES π
# add i386 (32 bit) architecture
__dpkg_architecture i386
# remove it again :)
__dpkg_architecture i386 --state absent
π¦ SEE ALSO π¦
- Multiarch on Debian systems
- How to setup multiarch on Debian
dpkg(1)cdist-type__package_dpkg(7)cdist-type__package_apt(7)
Useful commands, bookmark these fr fr β
# base architecture installed on this system
dpkg --print-architecture
# extra architectures added
dpkg --print-foreign-architectures
π AUTHORS π
Matthias Stecher <matthiasstecher at gmx.de> π
π COPYING π
Copyright (C) 2020 Matthias Stecher. 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. slay, open source π«Ά
π COPYRIGHT π
ungleich GmbH 2021 πΈ
and that's the whole page bestie, no notes π this was version 7.0.0, dated Jul 31, 2022 β go forth and multiarch, periodt β¨ππ¦
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms