17 Debian (Bullseye or later) and Ubuntu (20.04 or later): you can install these with
18 apt install -y pkg-config libaio-dev libblkid-dev libkeyutils-dev \
19 liblz4-dev libsodium-dev liburcu-dev libzstd-dev \
20 uuid-dev zlib1g-dev valgrind libudev-dev git build-essential \
21 python3 python3-docutils
23 Fedora: install the "Development tools" group along with:
24 dnf install -y libaio-devel libsodium-devel \
25 libblkid-devel libzstd-devel zlib-devel userspace-rcu-devel \
26 lz4-devel libuuid-devel valgrind-devel keyutils-libs-devel \
29 Arch: install bcachefs-tools-git from the AUR.
30 Or to build from source, install build dependencies with
31 pacman -S base-devel libaio keyutils libsodium liburcu zstd valgrind
33 Then, just make && make install
36 -- Experimental features --
38 Experimental fuse support is currently disabled by default. Fuse support is at
39 an early stage and may corrupt your filesystem, so it should only be used for
40 testing. To enable, you'll also need to add:
44 On Debian/Ubuntu (Bullseye/20.04 or later needed for libfuse >= 3.7):
45 apt install -y libfuse3-dev
47 On Fedora (32 or later needed for lbifuse >= 3.7):
48 dnf install -y fuse3-devel
53 Then, make using the BCACHEFS_FUSE environment variable (make clean first if
54 previously built without fuse support):
56 BCACHEFS_FUSE=1 make && make install
61 Some tests are available to validate the "bcachefs" binary. The tests depend
65 apt install -u python3-pytest
67 Then, you can run the tests via:
70 # or if pytest has a different name
71 make check PYTEST=pytest
73 Optionally, you may wish to run tests in parallel using python3-pytest-xdist:
75 cd tests; pytest-3 -n4