Skip to content

Instantly share code, notes, and snippets.

@przemoc
Created December 13, 2015 20:49
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save przemoc/e02d19739277be1d22d5 to your computer and use it in GitHub Desktop.
Switching from jessie to jessie-backports with support for installing stretch/sid packages. (/etc/apt/)
Package: *
Pin: release n=jessie-backports
Pin-Priority: 800
Package: *
Pin: release n=jessie-updates
Pin-Priority: 700
Package: *
Pin: release n=jessie
Pin-Priority: 600
Package: *
Pin: release n=stretch
Pin-Priority: 300
Package: *
Pin: release n=sid
Pin-Priority: 200
Package: *
Pin: release o=Debian
Pin-Priority: -10
deb http://ftp.pl.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.pl.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
# jessie-updates, previously known as 'volatile'
deb http://ftp.pl.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.pl.debian.org/debian/ jessie-updates main contrib non-free
# jessie-backports, previously on backports.debian.org
deb http://ftp.pl.debian.org/debian/ jessie-backports main contrib non-free
deb-src http://ftp.pl.debian.org/debian/ jessie-backports main contrib non-free
# stretch
deb http://ftp.pl.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.pl.debian.org/debian/ stretch main contrib non-free
# sid
deb http://ftp.pl.debian.org/debian/ sid main contrib non-free
deb-src http://ftp.pl.debian.org/debian/ sid main contrib non-free
@przemoc
Copy link
Author

przemoc commented Dec 13, 2015

sudo apt-get update
sudo apt-get dist-upgrade

Now you'll get some more recent stuff like Wireshark 2 (1.x is so buggy...) or LibreOffice 5.
If you want to install some packages from stretch/sid use -t RELEASE option, e.g.:

sudo apt-get install -t stretch html-xml-utils
sudo apt-get install -t sid jq

Some packages from sid may require to upgrade a lot of already installed packages, but fortunately it's not always the case. There are some useful newer versions available in sid, e.g.:

  • GnuPG 2.1

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