CDIST-TYPE__PACKAGE_PKGNG_FREEBSD(7)
π cdist-type__package_pkgng_freebsd(7) π
okay bestie, so this is a page from the cdist manual β yes, the actual manual, section 7 β and it's all about the __package_pkgng_freebsd type. let's get into it π«Ά
β¨ NAME β¨
cdist-type__package_pkgng_freebsd β manage FreeBSD packages with pkg-ng, periodt π
πΈ DESCRIPTION πΈ
so like, this type is usually used on FreeBSD to manage packages. that's literally its whole thing. it's giving package manager but make it cdist. π
π REQUIRED PARAMETERS π
None. not a single one, she's low maintenance. π
β OPTIONAL PARAMETERS β
nameβ if you supply it, she uses that as the package name instead of the object id. handy when they don't match, iykyk.flavorβ if you supply it, it's used to avoid ambiguity. like when two packages are fighting over the same name and you gotta pick a side. π¦versionβ if you supply it, she installs that specific version of the package you named. precision, bestie. β¨repoβ if you supply it, she installs the package you named from that particular repo. very "I know a guy" energy. πstateβ either"present"or"absent", and it defaults to"present". simple as that. π
π BOOLEAN PARAMETERS π
upgradeβ if supplied, it allows upgrading to the latest version of a package. no cap. π₯
π CAVEATS π
okay listen, this is the part where you actually pay attention, bestie:
- This type requires that repository definitions already exist in
/etc/pkg/*.conf. Make sure they're there before you use this type β do it with__file. no repos, no vibes, no packages. π pkg-ngcan't upgrade a package to a specific version. So if this type needs to upgrade a package, it can only upgrade to the latest available version, periodt. And if theupgradeparameter is not given and an upgrade needs to occur β an error will result. that's not a drill, that's a whole error. π
π MESSAGES π
here's the group chat of things this type might tell you:
installβ The package was installed πremoveβ The package was removedupgradeβ The package was upgraded β¬οΈexistβ The package was already present and thus not installed. she's already here, bestie, she ate and left no crumbs. π
π EXAMPLES π
# Ensure zsh is installed
__package_pkgng_freebsd zsh --state present
# Ensure vim is installed, use flavor no_x11
__package_pkgng_freebsd vim --state present --flavor no_x11
# If you don't want to follow pythonX packages, but always use python
__package_pkgng_freebsd python --state present --name python2
# Install a package from a particular repository when multiples exist
__package_pkgng_freebsd bash --state present --repo myrepo
# Remove obsolete package
__package_pkgng_freebsd puppet --state absent
look at her go. iconic. πΈ
π¦ SEE ALSO π¦
π AUTHORS π
- Jake Guffey
<jake.guffey--@--eprotex.com>
π COPYING π
Copyright (C) 2014 Jake Guffey. 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. π
π§ COPYRIGHT π§
ungleich GmbH 2021
and that's the whole page, bestie!! this one's from the cdist manual, version 7.0.0, dated Jul 31 β shoutout to the docs, they ate. stay slaying, and always read your CAVEATS before you deploy π β¨
π¦ 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