π₯ Installation#
Install erofs-utils via Package Managers#
erofs-utils is available on most popular Linux distributions, although it may not be the latest stable version.
Here are examples for Arch Linux, Debian, Fedora, OpenAnolis and
Ubuntu:
# Arch Linux
$ sudo pacman -S erofs-utils
# Debian and Ubuntu
$ sudo apt install -y erofs-utils
# Fedora and OpenAnolis
$ sudo dnf install -y erofs-utils
On macOS, erofs-utils can be installed using MacPorts or Homebrew:
# MacPorts
$ sudo port install erofs-utils
# Homebrew
$ brew install erofs-utils
Build from source#
Install build dependencies#
To build erofs-utils, the following dependencies will be needed:
# Debian and Ubuntu
$ sudo apt install -y autoconf automake libfuse-dev liblz4-dev liblzma-dev libtool libzstd-dev pkg-config uuid-dev zlib1g-dev
# Fedora and OpenAnolis
$ sudo dnf install -y autoconf automake fuse-devel libtool libuuid-devel libzstd-devel lz4-devel pkg-config xz-devel zlib-devel
Download the erofs-utils source code#
Use Git to clone the erofs-utils repository:
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git
The repo defaults to the master development branch. You can also check out a release tag to build:
$ git checkout <tag> # v1.9.1, v1.8.10, v1.7.1, etc.
Configure and build#
Please run ./autogen.sh; ./configure from the repositoryβs root directory.
./configure will prompt you for the usability of erofs-utils dependencies and
asks for additional build configuration options:
$ ./autogen.sh
$ ./configure --enable-lz4 --enable-lzma --enable-fuse --with-libzstd
$ make
Install erofs-utils#
Use make install to install the generated files of erofs-utils:
$ sudo make install