diff --git a/Custom-Packages.md b/Custom-Packages.md index 2a4a9a4..093a42c 100644 --- a/Custom-Packages.md +++ b/Custom-Packages.md @@ -17,30 +17,18 @@ It is important to note that if the development kernel headers for the currently * [Red Hat, CentOS and Fedora](#red-hat-centos-and-fedora) * [Debian and Ubuntu](#debian-and-ubuntu) -## Red Hat, CentOS and Fedora +## RHEL, CentOS and Fedora -Make sure that the required packages are installed: +Make sure that the required packages are installed to build the latest ZFS 0.8 release: +* **RHEL/CentOS 7**: ```sh -$ sudo dnf install autoconf automake libtool rpm-build -$ sudo dnf install zlib-devel libuuid-devel libattr-devel libblkid-devel libselinux-devel libudev-devel -$ sudo dnf install libacl-devel libaio-devel device-mapper-devel openssl-devel libtirpc-devel elfutils-libelf-devel -$ sudo dnf install kernel-devel-$(uname -r) +sudo yum install epel-release gcc make autoconf automake libtool rpm-build dkms libtirpc-devel libblkid-devel libuuid-devel libudev-devel openssl-devel zlib-devel libaio-devel libattr-devel elfutils-libelf-devel kernel-devel-$(uname -r) python python2-devel python-setuptools python-cffi libffi-devel +``` -# To enable the pyzfs packages additionally install the following: - -# Fedora -$ sudo dnf install python3 python3-devel python3-setuptools python3-cffi - -# For Red Hat / CentOS 7 -$ sudo yum install epel-release -$ sudo yum install python36 python36-devel python36-setuptools python36-cffi - -# Additional for CentOS 8 -# Enable PowerTools repository - it is required for device-mapper-devel -$ sudo dnf config-manager --enable PowerTools -# For building kmod packages -$ sudo dnf install kernel-rpm-macros libffi-devel +* **RHEL/CentOS 8, Fedora**: +```sh +sudo dnf install gcc make autoconf automake libtool rpm-build kernel-rpm-macros dkms libtirpc-devel libblkid-devel libuuid-devel libudev-devel openssl-devel zlib-devel libaio-devel libattr-devel elfutils-libelf-devel kernel-devel-$(uname -r) python3 python3-devel python3-setuptools python3-cffi libffi-devel ``` [Get the source code](#get-the-source-code). @@ -85,13 +73,7 @@ $ sudo yum localinstall *.$(uname -p).rpm Make sure that the required packages are installed: ```sh -$ sudo apt-get install build-essential autoconf automake libtool gawk alien fakeroot gdebi-core -$ sudo apt-get install zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev -$ sudo apt-get install libacl1-dev libaio-dev libdevmapper-dev libssl-dev libelf-dev -$ sudo apt-get install linux-headers-$(uname -r) - -# To enable the pyzfs packages additionally install the following: -$ sudo apt-get install python3 python3-dev python3-setuptools python3-cffi +sudo apt install build-essential autoconf automake libtool gawk alien fakeroot dkms libblkid-dev uuid-dev libudev-dev libssl-dev zlib1g-dev libaio-dev libattr1-dev libelf-dev linux-headers-$(uname -r) python3 python3-dev python3-setuptools python3-cffi libffi-dev ``` [Get the source code](#get-the-source-code).