Skip to content
Richard Laager edited this page Apr 10, 2019 · 31 revisions

Offical ZFS on Linux DKMS style packages are available from the Debian GNU/Linux repository for the following configurations. The packages previously hosted at archive.zfsonlinux.org will not be updated and are not recommended for new installations.

Debian Releases: Jessie, Stretch, and newer (testing, sid) Architectures: amd64

Table of contents

Installation

For Debian Stretch, ZFS packages are included in the contrib repository. Newer ZFS packages are provided by backports.

Add the backports repository:

    # echo "deb http://deb.debian.org/debian stretch-backports main contrib" > /etc/apt/sources.list.d/stretch-backports.list

Update the list of packages:

    # apt update

Install kernel headers and other dependencies:

    # apt install linux-headers-$(uname -r) linux-headers-amd64 dkms build-essential libelf-dev

Install zfs packages:

    # apt-get install -t stretch-backports zfs-dkms zfsutils-linux

If you want to boot from ZFS, you'll need zfs-initramfs package too:

    # apt-get install -t stretch-backports zfs-initramfs

Jessie to Stretch update

From Debian Stretch packages are included in Debian official contrib repository. Steps to reinstall packages:

  1. Remove old packages:
# apt remove debian-zfs libzfs2 zfs-dkms zfsonlinux zfsutils libzpool2 libzfs2linux libnvpair1linux libnvpair1 libuutil1 libuutil1linux  libzpool2linux zfs-zed zfsutils-linux spl-dkms
  1. Remove ZFSonLinux repository.

  2. Install new packages, as described above.

Related Links

Clone this wiki locally