1CDIST-TYPE__APT_PIN(7)               cdist              CDIST-TYPE__APT_PIN(7)
2
3
4

NAME

6       cdist-type__apt_pin - Manage apt pinning rules
7

DESCRIPTION

9       Adds/removes/edits  rules  to pin some packages to a specific distribu‐
10       tion. Useful if using multiple debian repositories at  the  same  time.
11       (Useful,  if one wants to use a few specific packages from backports or
12       perhaps Debain testing... or even sid.)
13

REQUIRED PARAMETERS

15       distribution
16              Specifies what distribution the package should be pinned to. Ac‐
17              cepts both codenames (buster/bullseye/sid) and suite names (sta‐
18              ble/testing/...).
19

OPTIONAL PARAMETERS

21       package
22              Package name, glob or regular  expression  to  match  (multiple)
23              packages. If not specified __object_id is used.
24
25       priority
26              The  priority  value to assign to matching packages. Deafults to
27              500. (To match the default target distro's priority)
28
29       state  Will be passed to underlying __file type; see  there  for  valid
30              values and defaults.
31

BOOLEAN PARAMETERS

33       None.
34

EXAMPLES

36          # Add the bullseye repo to buster, but do not install any packages by default,
37          # only if explicitely asked for (-1 means "never" for apt)
38           __apt_pin bullseye-default \
39              --package "*" \
40              --distribution bullseye \
41              --priority -1
42
43           require="__apt_pin/bullseye-default" __apt_source bullseye \
44              --uri http://deb.debian.org/debian/ \
45              --distribution bullseye \
46              --component main
47
48           __apt_pin foo --package "foo foo-*" --distribution bullseye
49
50           __foo # Assuming, this installs the `foo` package internally
51
52           __package foo-plugin-extras # Assuming we also need some extra stuff
53

SEE ALSO

55       apt_preferences(5)    cdist-type__apt_source(7)   cdist-type__apt_back‐
56       ports(7) cdist-type__file(7)
57

AUTHORS

59       Daniel Fancsali <fancsali@gmail.com>
60

COPYING

62       Copyright (C) 2021 Daniel Fancsali. You can redistribute it and/or mod‐
63       ify  it  under the terms of the GNU General Public License as published
64       by the Free Software Foundation, either version 3 of  the  License,  or
65       (at your option) any later version.
66
68       ungleich GmbH 2021
69
70
71
72
736.9.8                            Aug 24, 2021           CDIST-TYPE__APT_PIN(7)
Impressum