adrianmihalko / raspberrypiwireguard

Install and configure WireGuard on Raspberry Pi (and others)
840 stars 77 forks source link

Explain limit-unstable file creation #39

Open dolmen opened 4 years ago

dolmen commented 4 years ago

In the first block I see this line:

printf 'Package: *\nPin: release a=unstable\nPin-Priority: 150\n' | sudo tee --append /etc/apt/preferences.d/limit-unstable

The tutoratial should explain what it does and why it is necessary.

dolmen commented 4 years ago

Apparently this line comes from the Wireguard official site: https://www.wireguard.com/install/#debian-module-tools

dolmen commented 4 years ago

https://wiki.debian.org/AptConfiguration describes pinning and priority:

When multiple Apt repositories are enabled, a package can exist in several of them. To know which one should be installed, Apt assigns priorities to packages. The default is 500.

  • If the packages have the same priority, the package with a higher version number (most recent) wins.
  • If packages have different priorities, the one with the higher priority wins.