How to use backports repository

Backports repository provides packages for stable system that are recompiled from testing or unstable distribution. It is important to know that these packages are provided as is without any security support guarantee.

Configure backports repository

Add stretch-backports repository.

$ cat <<EOF | sudo tee /etc/apt/sources.list.d/stretch-backports.list
deb http://http.debian.net/debian stretch-backports main contrib non-free
EOF
deb http://http.debian.net/debian stretch-backports main

Update package index.

$ sudo apt-get update

Install packages directly from backports repository

Display available package versions.

$ apt-cache policy zfs-dkms
zfs-dkms:
  Installed: (none)
  Candidate: 0.6.5.11-1~bpo9+1
  Version table:
     0.6.5.11-1~bpo9+1 100
        100 http://http.debian.net/debian stretch-backports/contrib amd64 Packages

Backports repository has priority of 100. It is a default value since squeeze-backports, so it will be ignored during standard operations as distribution packages have priority of 500.

Specify defined earlier repository on the command-line to install package and its dependencies directly from backports repository.

$ sudo apt-get install -t stretch-backports zfs-dkms --dry-run
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  binutils cpp cpp-6 dkms fakeroot gcc gcc-6 libasan3 libatomic1 libc-dev-bin libc6-dev libcc1-0
  libcilkrts5 libfakeroot libgcc-6-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpfr4 libmpx2
  libnvpair1linux libquadmath0 libtsan0 libubsan0 libuutil1linux libzfs2linux libzpool2linux
  linux-compiler-gcc-6-x86 linux-headers-4.13.0-0.bpo.1-amd64 linux-headers-4.13.0-0.bpo.1-common
  linux-headers-amd64 linux-kbuild-4.13 linux-libc-dev make manpages manpages-dev patch spl spl-dkms
  zfs-zed zfsutils-linux
Suggested packages:
  binutils-doc cpp-doc gcc-6-locales python3-apport menu gcc-multilib autoconf automake libtool flex
  bison gdb gcc-doc gcc-6-multilib gcc-6-doc libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg
  libasan3-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg
  glibc-doc make-doc ed diffutils-doc nfs-kernel-server samba-common-bin zfs-initramfs | zfs-dracut
The following NEW packages will be installed:
  binutils cpp cpp-6 dkms fakeroot gcc gcc-6 libasan3 libatomic1 libc-dev-bin libc6-dev libcc1-0
  libcilkrts5 libfakeroot libgcc-6-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpfr4 libmpx2
  libnvpair1linux libquadmath0 libtsan0 libubsan0 libuutil1linux libzfs2linux libzpool2linux
  linux-compiler-gcc-6-x86 linux-headers-4.13.0-0.bpo.1-amd64 linux-headers-4.13.0-0.bpo.1-common
  linux-headers-amd64 linux-kbuild-4.13 linux-libc-dev make manpages-dev patch spl spl-dkms zfs-dkms
  zfs-zed zfsutils-linux
The following packages will be upgraded:
  manpages
1 upgraded, 43 newly installed, 0 to remove and 78 not upgraded.
Inst libisl15 (0.18-1 Debian:9.2/stable [amd64])
Inst libmpfr4 (3.1.5-1 Debian:9.2/stable [amd64])
Inst libmpc3 (1.0.3-1+b2 Debian:9.2/stable [amd64])
Inst cpp-6 (6.3.0-18 Debian:9.2/stable [amd64])
Inst cpp (4:6.3.0-4 Debian:9.2/stable [amd64])
Inst libcc1-0 (6.3.0-18 Debian:9.2/stable [amd64])
Inst binutils (2.28-5 Debian:9.2/stable [amd64])
Inst libgomp1 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libitm1 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libatomic1 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libasan3 (6.3.0-18 Debian:9.2/stable [amd64])
Inst liblsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libtsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libubsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libcilkrts5 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libmpx2 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libquadmath0 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libgcc-6-dev (6.3.0-18 Debian:9.2/stable [amd64])
Inst gcc-6 (6.3.0-18 Debian:9.2/stable [amd64])
Inst gcc (4:6.3.0-4 Debian:9.2/stable [amd64])
Inst make (4.1-9.1 Debian:9.2/stable [amd64])
Inst patch (2.7.5-1+b2 Debian:9.2/stable [amd64])
Inst dkms (2.3-2 Debian:9.2/stable [all])
Inst libc-dev-bin (2.24-11+deb9u1 Debian:9.2/stable, Debian-Security:9/stable [amd64])
Inst linux-libc-dev (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst libc6-dev (2.24-11+deb9u1 Debian:9.2/stable, Debian-Security:9/stable [amd64])
Inst spl-dkms (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [all])
Conf libisl15 (0.18-1 Debian:9.2/stable [amd64])
Conf libmpfr4 (3.1.5-1 Debian:9.2/stable [amd64])
Conf libmpc3 (1.0.3-1+b2 Debian:9.2/stable [amd64])
Conf cpp-6 (6.3.0-18 Debian:9.2/stable [amd64])
Conf cpp (4:6.3.0-4 Debian:9.2/stable [amd64])
Conf libcc1-0 (6.3.0-18 Debian:9.2/stable [amd64])
Conf binutils (2.28-5 Debian:9.2/stable [amd64])
Conf libgomp1 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libitm1 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libatomic1 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libasan3 (6.3.0-18 Debian:9.2/stable [amd64])
Conf liblsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libtsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libubsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libcilkrts5 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libmpx2 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libquadmath0 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libgcc-6-dev (6.3.0-18 Debian:9.2/stable [amd64])
Conf gcc-6 (6.3.0-18 Debian:9.2/stable [amd64])
Conf gcc (4:6.3.0-4 Debian:9.2/stable [amd64])
Conf make (4.1-9.1 Debian:9.2/stable [amd64])
Conf patch (2.7.5-1+b2 Debian:9.2/stable [amd64])
Conf dkms (2.3-2 Debian:9.2/stable [all])
Conf libc-dev-bin (2.24-11+deb9u1 Debian:9.2/stable, Debian-Security:9/stable [amd64])
Conf linux-libc-dev (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf libc6-dev (2.24-11+deb9u1 Debian:9.2/stable, Debian-Security:9/stable [amd64])
Conf spl-dkms (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [all])
Inst zfs-dkms (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [all])
Inst manpages [4.10-2] (4.13-3~bpo9+2 Debian Backports:stretch-backports [all])
Inst libfakeroot (1.21-3.1 Debian:9.2/stable [amd64])
Inst fakeroot (1.21-3.1 Debian:9.2/stable [amd64])
Inst libuutil1linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst libnvpair1linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst libzpool2linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst libzfs2linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst linux-compiler-gcc-6-x86 (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst linux-headers-4.13.0-0.bpo.1-common (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [all])
Inst linux-kbuild-4.13 (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst linux-headers-4.13.0-0.bpo.1-amd64 (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst linux-headers-amd64 (4.13+86~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst manpages-dev (4.13-3~bpo9+2 Debian Backports:stretch-backports [all])
Inst spl (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst zfsutils-linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst zfs-zed (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf zfs-dkms (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [all])
Conf manpages (4.13-3~bpo9+2 Debian Backports:stretch-backports [all])
Conf libfakeroot (1.21-3.1 Debian:9.2/stable [amd64])
Conf fakeroot (1.21-3.1 Debian:9.2/stable [amd64])
Conf libuutil1linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf libnvpair1linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf libzpool2linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf libzfs2linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf linux-compiler-gcc-6-x86 (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf linux-headers-4.13.0-0.bpo.1-common (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [all])
Conf linux-kbuild-4.13 (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf linux-headers-4.13.0-0.bpo.1-amd64 (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf linux-headers-amd64 (4.13+86~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf manpages-dev (4.13-3~bpo9+2 Debian Backports:stretch-backports [all])
Conf spl (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf zfsutils-linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf zfs-zed (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])

This package will be upgraded from the same repository as apt will install the most recent version if it encounters two or more package versions that have the same priority.

Install package indirectly from backports repository

Assign the same priority as stable release to every package located in stretch-backports repository.

$ cat << EOF | sudo tee /etc/apt/preferences.d/89_stretch-backports_default
Package: *
Pin: release n=stretch-backports
Pin-Priority: 500
EOF

Install package using the standard way, dependencies will be automatically satisfied.

$ sudo apt-get install zfs-dkms --dry-run
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  binutils cpp cpp-6 dkms fakeroot gcc gcc-6 libasan3 libatomic1 libc-dev-bin libc6-dev libcc1-0
  libcilkrts5 libfakeroot libgcc-6-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpfr4 libmpx2
  libnvpair1linux libquadmath0 libtsan0 libubsan0 libuutil1linux libzfs2linux libzpool2linux
  linux-compiler-gcc-6-x86 linux-headers-4.13.0-0.bpo.1-amd64 linux-headers-4.13.0-0.bpo.1-common
  linux-headers-amd64 linux-kbuild-4.13 linux-libc-dev make manpages manpages-dev patch spl spl-dkms
  zfs-zed zfsutils-linux
Suggested packages:
  binutils-doc cpp-doc gcc-6-locales python3-apport menu gcc-multilib autoconf automake libtool flex
  bison gdb gcc-doc gcc-6-multilib gcc-6-doc libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg
  libasan3-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg
  glibc-doc make-doc ed diffutils-doc nfs-kernel-server samba-common-bin zfs-initramfs | zfs-dracut
The following NEW packages will be installed:
  binutils cpp cpp-6 dkms fakeroot gcc gcc-6 libasan3 libatomic1 libc-dev-bin libc6-dev libcc1-0
  libcilkrts5 libfakeroot libgcc-6-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpfr4 libmpx2
  libnvpair1linux libquadmath0 libtsan0 libubsan0 libuutil1linux libzfs2linux libzpool2linux
  linux-compiler-gcc-6-x86 linux-headers-4.13.0-0.bpo.1-amd64 linux-headers-4.13.0-0.bpo.1-common
  linux-headers-amd64 linux-kbuild-4.13 linux-libc-dev make manpages-dev patch spl spl-dkms zfs-dkms
  zfs-zed zfsutils-linux
The following packages will be upgraded:
  manpages
1 upgraded, 43 newly installed, 0 to remove and 78 not upgraded.
Inst libisl15 (0.18-1 Debian:9.2/stable [amd64])
Inst libmpfr4 (3.1.5-1 Debian:9.2/stable [amd64])
Inst libmpc3 (1.0.3-1+b2 Debian:9.2/stable [amd64])
Inst cpp-6 (6.3.0-18 Debian:9.2/stable [amd64])
Inst cpp (4:6.3.0-4 Debian:9.2/stable [amd64])
Inst libcc1-0 (6.3.0-18 Debian:9.2/stable [amd64])
Inst binutils (2.28-5 Debian:9.2/stable [amd64])
Inst libgomp1 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libitm1 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libatomic1 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libasan3 (6.3.0-18 Debian:9.2/stable [amd64])
Inst liblsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libtsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libubsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libcilkrts5 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libmpx2 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libquadmath0 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libgcc-6-dev (6.3.0-18 Debian:9.2/stable [amd64])
Inst gcc-6 (6.3.0-18 Debian:9.2/stable [amd64])
Inst gcc (4:6.3.0-4 Debian:9.2/stable [amd64])
Inst make (4.1-9.1 Debian:9.2/stable [amd64])
Inst patch (2.7.5-1+b2 Debian:9.2/stable [amd64])
Inst dkms (2.3-2 Debian:9.2/stable [all])
Inst libc-dev-bin (2.24-11+deb9u1 Debian:9.2/stable, Debian-Security:9/stable [amd64])
Inst linux-libc-dev (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst libc6-dev (2.24-11+deb9u1 Debian:9.2/stable, Debian-Security:9/stable [amd64])
Inst spl-dkms (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [all])
Conf libisl15 (0.18-1 Debian:9.2/stable [amd64])
Conf libmpfr4 (3.1.5-1 Debian:9.2/stable [amd64])
Conf libmpc3 (1.0.3-1+b2 Debian:9.2/stable [amd64])
Conf cpp-6 (6.3.0-18 Debian:9.2/stable [amd64])
Conf cpp (4:6.3.0-4 Debian:9.2/stable [amd64])
Conf libcc1-0 (6.3.0-18 Debian:9.2/stable [amd64])
Conf binutils (2.28-5 Debian:9.2/stable [amd64])
Conf libgomp1 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libitm1 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libatomic1 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libasan3 (6.3.0-18 Debian:9.2/stable [amd64])
Conf liblsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libtsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libubsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libcilkrts5 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libmpx2 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libquadmath0 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libgcc-6-dev (6.3.0-18 Debian:9.2/stable [amd64])
Conf gcc-6 (6.3.0-18 Debian:9.2/stable [amd64])
Conf gcc (4:6.3.0-4 Debian:9.2/stable [amd64])
Conf make (4.1-9.1 Debian:9.2/stable [amd64])
Conf patch (2.7.5-1+b2 Debian:9.2/stable [amd64])
Conf dkms (2.3-2 Debian:9.2/stable [all])
Conf libc-dev-bin (2.24-11+deb9u1 Debian:9.2/stable, Debian-Security:9/stable [amd64])
Conf linux-libc-dev (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf libc6-dev (2.24-11+deb9u1 Debian:9.2/stable, Debian-Security:9/stable [amd64])
Conf spl-dkms (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [all])
Inst zfs-dkms (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [all])
Inst manpages [4.10-2] (4.13-3~bpo9+2 Debian Backports:stretch-backports [all])
Inst libfakeroot (1.21-3.1 Debian:9.2/stable [amd64])
Inst fakeroot (1.21-3.1 Debian:9.2/stable [amd64])
Inst libuutil1linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst libnvpair1linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst libzpool2linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst libzfs2linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst linux-compiler-gcc-6-x86 (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst linux-headers-4.13.0-0.bpo.1-common (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [all])
Inst linux-kbuild-4.13 (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst linux-headers-4.13.0-0.bpo.1-amd64 (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst linux-headers-amd64 (4.13+86~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst manpages-dev (4.13-3~bpo9+2 Debian Backports:stretch-backports [all])
Inst spl (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst zfsutils-linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst zfs-zed (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf zfs-dkms (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [all])
Conf manpages (4.13-3~bpo9+2 Debian Backports:stretch-backports [all])
Conf libfakeroot (1.21-3.1 Debian:9.2/stable [amd64])
Conf fakeroot (1.21-3.1 Debian:9.2/stable [amd64])
Conf libuutil1linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf libnvpair1linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf libzpool2linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf libzfs2linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf linux-compiler-gcc-6-x86 (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf linux-headers-4.13.0-0.bpo.1-common (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [all])
Conf linux-kbuild-4.13 (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf linux-headers-4.13.0-0.bpo.1-amd64 (4.13.13-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf linux-headers-amd64 (4.13+86~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf manpages-dev (4.13-3~bpo9+2 Debian Backports:stretch-backports [all])
Conf spl (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf zfsutils-linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf zfs-zed (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])

This solution is not suitable for production environment because every installed package will get updated.

Install particular package indirectly from backports repository

Assign the lowest priority to every package located in stretch-backports repository.

$ cat << EOF | sudo tee /etc/apt/preferences.d/89_stretch-backports_default
Package: *
Pin: release n=stretch-backports
Pin-Priority: -1
EOF

Assign higher priority to the zfs-dkms package and its dependencies that are located in stretch-backports repository. You need to include dependencies here.

$ cat << EOF | sudo tee /etc/apt/preferences.d/90_stretch-backports_packages
Package: zfs-dkms zfs-zed zfsutils-linux spl-dkms libnvpair1linux libuutil1linux libzfs2linux libzpool2linux spl
Pin: release n=stretch-backports
Pin-Priority: 1000
EOF

Mentioned earlier packages will be installed by default from stretch-backports repository due to their priority.

$ sudo apt-get install zfs-dkms --dry-run
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  binutils cpp cpp-6 dkms fakeroot gcc gcc-6 libasan3 libatomic1 libc-dev-bin libc6-dev libcc1-0
  libcilkrts5 libfakeroot libgcc-6-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpfr4 libmpx2
  libnvpair1linux libquadmath0 libtsan0 libubsan0 libuutil1linux libzfs2linux libzpool2linux
  linux-compiler-gcc-6-x86 linux-headers-4.9.0-4-amd64 linux-headers-4.9.0-4-common
  linux-headers-amd64 linux-kbuild-4.9 linux-libc-dev make manpages-dev patch spl spl-dkms zfs-zed
  zfsutils-linux
Suggested packages:
  binutils-doc cpp-doc gcc-6-locales python3-apport menu gcc-multilib autoconf automake libtool flex
  bison gdb gcc-doc gcc-6-multilib gcc-6-doc libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg
  libasan3-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg
  glibc-doc make-doc ed diffutils-doc nfs-kernel-server samba-common-bin zfs-initramfs | zfs-dracut
The following NEW packages will be installed:
  binutils cpp cpp-6 dkms fakeroot gcc gcc-6 libasan3 libatomic1 libc-dev-bin libc6-dev libcc1-0
  libcilkrts5 libfakeroot libgcc-6-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpfr4 libmpx2
  libnvpair1linux libquadmath0 libtsan0 libubsan0 libuutil1linux libzfs2linux libzpool2linux
  linux-compiler-gcc-6-x86 linux-headers-4.9.0-4-amd64 linux-headers-4.9.0-4-common
  linux-headers-amd64 linux-kbuild-4.9 linux-libc-dev make manpages-dev patch spl spl-dkms zfs-dkms
  zfs-zed zfsutils-linux
0 upgraded, 43 newly installed, 0 to remove and 61 not upgraded.
Inst libisl15 (0.18-1 Debian:9.2/stable [amd64])
Inst libmpfr4 (3.1.5-1 Debian:9.2/stable [amd64])
Inst libmpc3 (1.0.3-1+b2 Debian:9.2/stable [amd64])
Inst cpp-6 (6.3.0-18 Debian:9.2/stable [amd64])
Inst cpp (4:6.3.0-4 Debian:9.2/stable [amd64])
Inst libcc1-0 (6.3.0-18 Debian:9.2/stable [amd64])
Inst binutils (2.28-5 Debian:9.2/stable [amd64])
Inst libgomp1 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libitm1 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libatomic1 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libasan3 (6.3.0-18 Debian:9.2/stable [amd64])
Inst liblsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libtsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libubsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libcilkrts5 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libmpx2 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libquadmath0 (6.3.0-18 Debian:9.2/stable [amd64])
Inst libgcc-6-dev (6.3.0-18 Debian:9.2/stable [amd64])
Inst gcc-6 (6.3.0-18 Debian:9.2/stable [amd64])
Inst gcc (4:6.3.0-4 Debian:9.2/stable [amd64])
Inst make (4.1-9.1 Debian:9.2/stable [amd64])
Inst patch (2.7.5-1+b2 Debian:9.2/stable [amd64])
Inst dkms (2.3-2 Debian:9.2/stable [all])
Inst libc-dev-bin (2.24-11+deb9u1 Debian:9.2/stable, Debian-Security:9/stable [amd64])
Inst linux-libc-dev (4.9.51-1 Debian:9.2/stable [amd64])
Inst libc6-dev (2.24-11+deb9u1 Debian:9.2/stable, Debian-Security:9/stable [amd64])
Inst spl-dkms (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [all])
Conf libisl15 (0.18-1 Debian:9.2/stable [amd64])
Conf libmpfr4 (3.1.5-1 Debian:9.2/stable [amd64])
Conf libmpc3 (1.0.3-1+b2 Debian:9.2/stable [amd64])
Conf cpp-6 (6.3.0-18 Debian:9.2/stable [amd64])
Conf cpp (4:6.3.0-4 Debian:9.2/stable [amd64])
Conf libcc1-0 (6.3.0-18 Debian:9.2/stable [amd64])
Conf binutils (2.28-5 Debian:9.2/stable [amd64])
Conf libgomp1 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libitm1 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libatomic1 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libasan3 (6.3.0-18 Debian:9.2/stable [amd64])
Conf liblsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libtsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libubsan0 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libcilkrts5 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libmpx2 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libquadmath0 (6.3.0-18 Debian:9.2/stable [amd64])
Conf libgcc-6-dev (6.3.0-18 Debian:9.2/stable [amd64])
Conf gcc-6 (6.3.0-18 Debian:9.2/stable [amd64])
Conf gcc (4:6.3.0-4 Debian:9.2/stable [amd64])
Conf make (4.1-9.1 Debian:9.2/stable [amd64])
Conf patch (2.7.5-1+b2 Debian:9.2/stable [amd64])
Conf dkms (2.3-2 Debian:9.2/stable [all])
Conf libc-dev-bin (2.24-11+deb9u1 Debian:9.2/stable, Debian-Security:9/stable [amd64])
Conf linux-libc-dev (4.9.51-1 Debian:9.2/stable [amd64])
Conf libc6-dev (2.24-11+deb9u1 Debian:9.2/stable, Debian-Security:9/stable [amd64])
Conf spl-dkms (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [all])
Inst zfs-dkms (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [all])
Inst libfakeroot (1.21-3.1 Debian:9.2/stable [amd64])
Inst fakeroot (1.21-3.1 Debian:9.2/stable [amd64])
Inst libuutil1linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst libnvpair1linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst libzpool2linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst libzfs2linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst linux-compiler-gcc-6-x86 (4.9.51-1 Debian:9.2/stable [amd64])
Inst linux-headers-4.9.0-4-common (4.9.51-1 Debian:9.2/stable [all])
Inst linux-kbuild-4.9 (4.9.51-1 Debian:9.2/stable [amd64])
Inst linux-headers-4.9.0-4-amd64 (4.9.51-1 Debian:9.2/stable [amd64])
Inst linux-headers-amd64 (4.9+80+deb9u2 Debian:9.2/stable [amd64])
Inst manpages-dev (4.10-2 Debian:9.2/stable [all])
Inst spl (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst zfsutils-linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Inst zfs-zed (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf zfs-dkms (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [all])
Conf libfakeroot (1.21-3.1 Debian:9.2/stable [amd64])
Conf fakeroot (1.21-3.1 Debian:9.2/stable [amd64])
Conf libuutil1linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf libnvpair1linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf libzpool2linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf libzfs2linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf linux-compiler-gcc-6-x86 (4.9.51-1 Debian:9.2/stable [amd64])
Conf linux-headers-4.9.0-4-common (4.9.51-1 Debian:9.2/stable [all])
Conf linux-kbuild-4.9 (4.9.51-1 Debian:9.2/stable [amd64])
Conf linux-headers-4.9.0-4-amd64 (4.9.51-1 Debian:9.2/stable [amd64])
Conf linux-headers-amd64 (4.9+80+deb9u2 Debian:9.2/stable [amd64])
Conf manpages-dev (4.10-2 Debian:9.2/stable [all])
Conf spl (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf zfsutils-linux (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])
Conf zfs-zed (0.6.5.11-1~bpo9+1 Debian Backports:stretch-backports [amd64])

Additional notes

Priorities are extensively described in apt_preferences manual page.

About Milosz Galazka

Milosz is a Linux Foundation Certified Engineer working for a successful Polish company as a system administrator and a long time supporter of Free Software Foundation and Debian operating system. He is also open for new opportunities and challenges.