Skip to content

Instantly share code, notes, and snippets.

@midnight-wonderer
Last active February 22, 2022 03:50
Show Gist options
  • Save midnight-wonderer/5e00649807b889284de2dcb4dff10a1d to your computer and use it in GitHub Desktop.
Save midnight-wonderer/5e00649807b889284de2dcb4dff10a1d to your computer and use it in GitHub Desktop.
Higher apt repo priority
path:
/etc/apt/preferences.d
command:
apt policy
apt-cache policy package-name
content:
Package: *
Pin: release o=RepoNameFromPolicyCommand
Pin-Priority: 1000 (the more number the more priority)
Package: *
Pin: release o=TorProject
Pin-Priority: 1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment