mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-09 00:00:17 +03:00
apt repo readme: mention pinning
This commit is contained in:
parent
af416249c3
commit
2f0b52bf85
17
.github/workflows/deb-publish.yml
vendored
17
.github/workflows/deb-publish.yml
vendored
@ -185,6 +185,23 @@ jobs:
|
||||
|
||||
|
||||
|
||||
If you want to ensure that the packages from this repository are always preferred, do:
|
||||
|
||||
mkdir -p /etc/apt/preferences.d
|
||||
sudo cat > "/etc/apt/preferences.d/apt.bcachefs.org.pref " <<EOP
|
||||
Package: *
|
||||
Pin: origin apt.bcachefs.org
|
||||
Pin-Priority: 1000
|
||||
EOP
|
||||
|
||||
|
||||
Note that yes, you should always prefer `Pin: origin <hostname>`,
|
||||
over `Pin: release o=<origin>`, because pinning by origin
|
||||
will *actually* pin by the full hostname of APT repository,
|
||||
whereas any repository can claim anything in it's `Origin: ` field,
|
||||
and thus pinning by origin label is inherently insecure!
|
||||
|
||||
|
||||
For more information, see:
|
||||
https://wiki.debian.org/DebianRepository/UseThirdParty
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user