CDIST-TYPE__PACKAGE(7)

πŸ’– cdist-type__package πŸ’–

okay bestie, welcome to the cdist-type__package manual page β€” this is the cdist type that handles packages, and she's the queen of delegation πŸ‘‘


✨ NAME ✨

cdist-type__package β€” Manage packages πŸŽ€


🌸 DESCRIPTION 🌸

so basically this cdist type lets you install or uninstall packages on the target. that's it, that's the job πŸ’…

and the way she does it? she does NOT do the work herself, no ma'am. she dispatches the actual work to the package system dependent types. she's the manager, the other types are the ones clocking in 😭 iconic delegation honestly πŸ¦‹


🧚 REQUIRED PARAMETERS 🧚

None πŸ’–

nothing required, she's low maintenance, we love that for her ✨


πŸ‘‘ OPTIONAL PARAMETERS πŸ‘‘

  • name β€” the name of the package to install. default is to use the object_id as the package name. so like, if you don't tell her the name, she just assumes the object_id is it 🌸
  • version β€” the version of the package to install. default is to install the version chosen by the local package manager. so if you don't specify, your local package manager gets to pick and honestly let her cook πŸ“
  • type β€” the package type to use. default is determined based on the $os explorer variable. e.g.
    • __package_apt for Debian
    • __package_emerge for Gentoo

so yeah, she peeks at $os and picks the matching type for you, no cap πŸ’…

  • state β€” either "present" or "absent", defaults to "present" ✨

🌈 EXAMPLES 🌈

# Install the package vim on the target
__package vim --state present

# Same but install specific version
__package vim --state present --version 7.3.50

# Force use of a specific package type
__package vim --state present --type __package_apt

like look at that. three examples, all serving πŸ’– the third one is giving "i know better than the $os variable" energy and we respect it 😀


🫢 AUTHORS 🫢

Steven Armstrong <steven-cdist--@--armstrong.cc> β€” shoutout to the legend, we stan πŸ’œ


πŸ“œ COPYING πŸ“œ

Copyright (C) 2011 Steven Armstrong. 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, version 3 or later, your call bestie ✨


ungleich GmbH 2021


and that's the whole page, you ate it, no crumbs πŸ’… this was version 7.0.0 from Jul 31, 2022 β€” mwah, go install something, ily πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from