You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.2 KiB

  1. # Build
  2. **NOTE:** Prebuilt packages can be found at and recommended for most
  3. users: https://github.com/trapexit/mergerfs/releases
  4. **NOTE:** Only tagged releases are supported. `master` and other
  5. branches should be considered works in progress.
  6. First, get the code from [github](https://github.com/trapexit/mergerfs).
  7. ```
  8. $ git clone https://github.com/trapexit/mergerfs.git
  9. $ # or
  10. $ wget https://github.com/trapexit/mergerfs/releases/download/<ver>/mergerfs-<ver>.tar.gz
  11. ```
  12. ## Debian / Ubuntu
  13. ```
  14. $ cd mergerfs
  15. $ sudo tools/install-build-pkgs
  16. $ make deb
  17. $ sudo dpkg -i ../mergerfs_<version>_<arch>.deb
  18. ```
  19. ## RHEL / CentOS / Rocky / Fedora
  20. ```
  21. $ su -
  22. # cd mergerfs
  23. # tools/install-build-pkgs
  24. # make rpm
  25. # rpm -i rpmbuild/RPMS/<arch>/mergerfs-<version>.<arch>.rpm
  26. ```
  27. ## Generic Linux
  28. Have git, g++ or clang, make, python installed.
  29. ```
  30. $ cd mergerfs
  31. $ make
  32. $ sudo make install
  33. ```
  34. ## FreeBSD
  35. Have git, g++ or clang, gmake, python installed.
  36. ```
  37. $ cd mergerfs
  38. $ gmake
  39. $ gmake install # as root
  40. ```
  41. ## Build options
  42. ```
  43. $ make help
  44. usage: make
  45. make USE_XATTR=0 - build program without xattrs functionality
  46. make STATIC=1 - build static binary
  47. make LTO=1 - build with link time optimization
  48. ```