CDIST-TYPE__PACKAGE_APK(7)

🌸 CDIST-TYPE__PACKAGE_APK(7) 🌸

okay bestie, so this is a page from the cdist manual β€” it's called cdist-type__package_apk and it's your girl for handling packages with apk. Manual section 7, in case you were wondering. πŸ’…


✨ NAME ✨

cdist-type__package_akp β€” Manage packages with akp

not me noticing the manpage literally spells it akp up in the NAME and apk everywhere else πŸ™ˆ keeping it exactly as written, no edits, periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

apk is usually the thing you use on Alpine to manage packages. that's the whole vibe. πŸ”οΈβœ¨


πŸŽ€ REQUIRED PARAMETERS πŸŽ€

None πŸ’–

like, zero. nothing. you're free. no required params, no pressure, main character energy fr fr.


πŸ‘‘ OPTIONAL PARAMETERS πŸ‘‘

  • name β€” if you actually supply this, cdist uses the name you gave as the package name instead of using the object id. so it's giving "i have opinions about what this package is called" πŸ’…
  • state β€” either "present" or "absent". and if you just... don't say anything? it defaults to "present". the default is lowkey doing the most so you don't have to 🫢

🌈 EXAMPLES 🌈

here's the tea, two whole examples, copy them exactly bestie:

# Ensure zsh in installed
__package_apk zsh --state present

# Remove package
__package_apk apache2 --state absent

first one: zsh gets installed, --state present, slay. 🐚 second one: apache2 gets removed, --state absent, bye boo πŸ‘‹πŸ’€

(yes, the comment really says "in installed" β€” we don't fix the original around here, we honor it πŸŽ€)


🧚 SEE ALSO 🧚


⭐ AUTHORS ⭐

Nico Schottelius <nico-cdist--@--schottelius.org> β€” iconic, we thank them πŸ™βœ¨


πŸ’– COPYING πŸ’–

Copyright (C) 2019 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. 🫢

fr fr, that's the license, respect it. πŸ“œ

ungleich GmbH 2021 πŸ’…


and that's the whole page bestie, no cap. this was version 7.0.0, dated Jul 31, 2022, coming at you straight from the cdist manual. go forth and manage those packages πŸ’–βœ¨πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from