CDIST-TYPE__PACKAGE_EMERGE(7)

πŸ’… cdist-type__package_emerge πŸ’…

okay so bestie, welcome to cdist-type__package_emerge β€” it's a cdist type (section 7 of the manual, iykyk) and it's literally here to Manage packages with portage πŸŽ€


✨ NAME ✨

cdist-type__package_emerge β€” manage packages with portage, fr fr πŸ’–


🌸 DESCRIPTION 🌸

So like, Portage is usually the whole vibe on the gentoo distribution when you wanna manage packages πŸ‘‘ That's just how gentoo does.

But here's the tea, and I need you to hear me: this type requires app-portage/gentoolkit to be installed on the target host. No gentoolkit, no slay. 😭

And who's supposed to handle that? cdist-type__package_emerge_dependencies β€” that one is supposed to install the needed packages on the target host. It's the little helper holding your hand, periodt 🫢


πŸ¦‹ REQUIRED PARAMETERS πŸ¦‹

None ✨ β€” not a single one. You're free, you're unbothered, you're the main character. πŸ’…


πŸŽ€ OPTIONAL PARAMETERS πŸŽ€

  • name β€” if you supply this, it uses the name instead of the object id as the package name. Lowkey handy when the object id isn't giving what you need. πŸ’œ
  • state β€” either "present" or "absent", and it defaults to "present". So if you say nothing, things get installed. That's the default, no cap. 🌈
  • version β€” if you supply this, it's used to install or uninstall a specific version of the package you named. Very specific, very demure, very that girl. ⭐

πŸ’– EXAMPLES πŸ’–

okay these are the actual moves, copy them exactly bestie:

# Ensure sys-devel/gcc is installed
__package_emerge sys-devel/gcc --state present

# If you want a specific version of a package
__package_emerge app-portage/gentoolkit --state present --version 0.3.0.8-r2

# Remove package
__package_emerge sys-devel/gcc --state absent

See? Install it, pin it to a version, or yeet it into the void. All three moods, all valid. πŸ”₯


πŸ‘€ SEE ALSO πŸ‘€

go read those too, they're the supporting cast and they ate πŸ’…


🫢 AUTHORS 🫢

Thomas Oettli <otho--@--sfs.biz> β€” the icon who wrote this, we stan. πŸ‘‘


πŸ“œ COPYING πŸ“œ

Copyright (C) 2013 Thomas Oettli. 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. πŸ’–

okay so that's a real legal thing, not just vibes β€” read it, respect it, redistribute responsibly bestie.

ungleich GmbH 2021 🌸


and that's the whole page, bestie!! this was 7.0.0, dated Jul 31, 2022, and it's part of the cdist manual set β€” go forth and manage your packages, you're doing amazing sweetie πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from