CDIST-TYPE__APT_PIN(7)
β¨ cdist-type__apt_pin β the manual page, bestie edition β¨
okay so real talk, this is cdist-type__apt_pin, section 7 of the cdist manual. it's the lil type that handles your apt pinning rules and honestly? it's giving organizational queen. π
πΈ NAME πΈ
cdist-type__apt_pin β manage apt pinning rules, periodt.
π DESCRIPTION π
so this type adds, removes and edits rules that pin some packages to a specific distribution. it's the moment when you're running multiple debian repositories at the same time and you need them to not fight each other. no cap, it's genuinely useful if you wanna pull just a few specific packages from backports, or maybe from Debian testing... or even sid. π
π₯ REQUIRED PARAMETERS π₯
like, you literally cannot skip these, bestie.
distributionβ tells the type which distribution the package should be pinned to. it accepts codenames likebuster/bullseye/sidand suite names likestable/testing/.... both vibes work, pick your fighter. β¨
π OPTIONAL PARAMETERS π
these ones are optional, but the way they carry the whole operation... iconic.
packageβ the package name, a glob, or a regular expression that matches (multiple) packages. if you don't specify it,__object_idgets used instead. π¦priorityβ the priority value assigned to the matching packages. defaults to500. (that's to match the default target distro's priority, iykyk.) βstateβ this gets passed straight through to the underlying__filetype. go peek over there for the valid values and the defaults, because that's where the answers live. π
π«Ά BOOLEAN PARAMETERS π«Ά
- None.
literally none. nothing. zero. the void. π
π EXAMPLES π
here's the part where it gets cute and practical, bestie. copy these exactly, don't freestyle the flags:
# Add the bullseye repo to buster, but do not install any packages by default,
# only if explicitely asked for (-1 means "never" for apt)
__apt_pin bullseye-default \
--package "*" \
--distribution bullseye \
--priority -1
require="__apt_pin/bullseye-default" __apt_source bullseye \
--uri http://deb.debian.org/debian/ \
--distribution bullseye \
--component main
__apt_pin foo --package "foo foo-*" --distribution bullseye
__foo # Assuming, this installs the `foo` package internally
__package foo-plugin-extras # Assuming we also need some extra stuff
π SEE ALSO π
go read these too, they're in the group chat:
π§ AUTHORS π§
Daniel Fancsali <fancsali@gmail.com> β absolute legend, we stan. π
π COPYING π
Copyright (C) 2021 Daniel Fancsali. 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.
(so basically: free to share, free to remix, just keep the license energy intact. no stealing and pretending it's yours, that's not the vibe. β¨)
β COPYRIGHT β
ungleich GmbH 2021
and that's the whole page bestie!! version 7.0.0, dated Jul 31, 2022, brought to you by the cdist girlies. go pin some packages, you got this. ππ π¦
π¦ 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