18 In addition a recent Rust toolchain is required (rustc, cargo), either by using
19 [rustup](https://rustup.rs/) or make sure to use a distribution where rustc (>=1.65)
22 Debian (Bullseye or later) and Ubuntu (20.04 or later): you can install these with
25 apt install -y pkg-config libaio-dev libblkid-dev libkeyutils-dev \
26 liblz4-dev libsodium-dev liburcu-dev libzstd-dev \
27 uuid-dev zlib1g-dev valgrind libudev-dev git build-essential \
28 python3 python3-docutils
31 Fedora: install the "Development tools" group along with:
33 dnf install -y libaio-devel libsodium-devel \
34 libblkid-devel libzstd-devel zlib-devel userspace-rcu-devel \
35 lz4-devel libuuid-devel valgrind-devel keyutils-libs-devel \
39 Arch: install bcachefs-tools-git from the AUR.
40 Or to build from source, install build dependencies with
42 pacman -S base-devel libaio keyutils libsodium liburcu zstd valgrind
45 Then, just `make && make install`
51 Experimental fuse support is currently disabled by default. Fuse support is at
52 an early stage and may corrupt your filesystem, so it should only be used for
53 testing. To enable, you'll also need to add:
57 On Debian/Ubuntu (Bullseye/20.04 or later needed for libfuse >= 3.7):
59 apt install -y libfuse3-dev
62 On Fedora (32 or later needed for lbifuse >= 3.7):
64 dnf install -y fuse3-devel
72 Then, make using the `BCACHEFS_FUSE` environment variable (make clean first if
73 previously built without fuse support):
76 BCACHEFS_FUSE=1 make && make install