installation.rst 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. .. include:: global.rst.inc
  2. .. _installation:
  3. Installation
  4. ============
  5. |project_name| requires Python_ 3.2 or above to work. Even though Python 3 is
  6. not the default Python version on most Linux distributions, it is usually
  7. available as an optional install.
  8. Other dependencies:
  9. * `msgpack-python`_ >= 0.1.10
  10. * OpenSSL_ >= 1.0.0
  11. * libacl_
  12. The OpenSSL version bundled with Mac OS X and FreeBSD is most likey too old.
  13. Newer versions are available from homebrew_ on OS X and from FreeBSD ports.
  14. The llfuse_ python package is also required if you wish to mount an
  15. archive as a FUSE filesystem.
  16. Virtualenv_ can be used to build and install |project_name|
  17. without affecting the system Python or requiring root access.
  18. Common compilation pre-requisites
  19. ---------------------------------
  20. The following Debian packages are generally necessary to compile
  21. |project_name|, either through pip, the tarball or git::
  22. $ sudo apt-get install python3 python3-dev python3-msgpack python3-sphinx libssl-dev libacl1-dev
  23. Installing from PyPI using pip
  24. ------------------------------
  25. To install |project_name| system-wide::
  26. $ sudo pip3 install borgbackup
  27. To install it in a user-specific account::
  28. $ pip3 install --user borgbackup
  29. Then add ``$HOME/.library/bin`` to your ``$PATH``.
  30. Installing from source tarballs
  31. -------------------------------
  32. .. parsed-literal::
  33. $ curl -O :targz_url:`Borg`
  34. $ tar -xvzf |package_filename|
  35. $ cd |package_dirname|
  36. $ sudo python3 setup.py install
  37. Installing from git
  38. -------------------
  39. .. parsed-literal::
  40. $ git clone |git_url|
  41. $ cd borg
  42. $ sudo python3 setup.py install
  43. Please note that when installing from git, Cython_ is required to generate some files that
  44. are normally bundled with the release tarball.