Skip to content

Instantly share code, notes, and snippets.

@ps1dr3x
Last active February 6, 2023 11:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ps1dr3x/03f0ac1ac327bcb45968fa9e052db85b to your computer and use it in GitHub Desktop.
Save ps1dr3x/03f0ac1ac327bcb45968fa9e052db85b to your computer and use it in GitHub Desktop.
Debian multirepo setup (stable + individual packages from testing)

Debian multirepo setup (stable + individual packages from testing)

  • Lower Apt Pin priority of testing packages adding the following lines to /etc/apt/preferences (important: only the release name works):

    Package: *
    Pin: release n=bookworm
    Pin-Priority: 50
    
  • Add the testing repo in /etc/apt/sources.list:

    deb http://deb.debian.org/debian/ bookworm main
    deb-src http://deb.debian.org/debian/ bookworm-updates main
    
    
  • When referring to testing packages, use apt's -t parameter e.g. apt install -t testing <package>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment