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 β€” present or absent. Defaults to present πŸ’–

πŸ’Œ 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 πŸ¦‹

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 🫢


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