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.

56 lines
1.1 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
  28. Have git, g++, make, python installed.
  29. ```
  30. $ cd mergerfs
  31. $ make
  32. $ sudo make install
  33. ```
  34. ## Build options
  35. ```
  36. $ make help
  37. usage: make
  38. make USE_XATTR=0 - build program without xattrs functionality
  39. make STATIC=1 - build static binary
  40. make LTO=1 - build with link time optimization
  41. ```