CDIST-TYPE__PACKAGE_YUM(7)

✨ cdist-type__package_yum ✨

ok so bestie, this is a cdist type page β€” it's cdist-type__package_yum from the cdist manual, and it's all about managing packages with yum. πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

So yum is the package manager that's usually doing its thing on the Fedora distribution, keeping packages in line. That's its whole job and honestly it's serving.

heads up bestie: if you hand yum a package name it doesn't know, it's gonna hit you with the slightly confusing error message "Error: Nothing to do". Like girl. that is not helpful. but that's what it says, so don't be surprised. 😭

🫢 REQUIRED PARAMETERS 🫢

None. literally nothing required, she's low maintenance. ✨


πŸ’– OPTIONAL PARAMETERS πŸ’–

  • name β€” if you supply this, it uses the name instead of the object id as the package name. iykyk.
  • state β€” either "present" or "absent". defaults to "present".
  • url β€” the URL to use for the package.

🌸 EXAMPLES 🌸

ok here's where it gets fun, look at these:

# Ensure zsh in installed
__package_yum zsh --state present

# If you don't want to follow pythonX packages, but always use python
__package_yum python --state present --name python2

# Remove obsolete package
__package_yum puppet --state absent

__package epel-release-6-8 \
    --url http://mirror.switch.ch/ftp/mirror/epel/6/i386/epel-release-6-8.noarch.rpm

(and yes, the comment really does say "Ensure zsh in installed" β€” we're keeping it exactly as it is, no edits, periodt. πŸ’€)


πŸ‘‘ SEE ALSO πŸ‘‘

go read that one too, it's the main character of the package type family. πŸ¦‹


🌈 AUTHORS 🌈

  • Nico Schottelius <nico-cdist--@--schottelius.org>

πŸ’œ COPYING πŸ’œ

Copyright (C) 2011-2012 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.


ungleich GmbH 2021


and that's the whole page bestie, no notes, we ate. πŸ“

this was cdist manual version 7.0.0, dated Jul 31, 2022 β€” mwah, bye, go manage some packages πŸ’…βœ¨

πŸ“¦ where this page comes from