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

from-package.en-us.md 2.1 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. ---
  2. date: "2016-12-01T16:00:00+02:00"
  3. title: "Installation from package"
  4. slug: "install-from-package"
  5. weight: 10
  6. toc: true
  7. draft: false
  8. menu:
  9. sidebar:
  10. parent: "installation"
  11. name: "From package"
  12. weight: 20
  13. identifier: "install-from-package"
  14. ---
  15. # Installation from package
  16. ## Debian
  17. The only distribution that has any "official" package of Gitea is Debian. This is currently
  18. in Debian's [contrib](https://wiki.debian.org/SourcesList). This is (currently) only available
  19. in Debian testing and unstable (but should be installable/functional on stable).
  20. - Edit /etc/apt/sourced.list
  21. - Add "contrib" to "deb http://deb.debian.org/debian unstable main contrib"
  22. - apt-get update
  23. - apt-get install gitea
  24. For other distributions, see the [deployment from binary]({{< relref "from-binary.en-us.md" >}}) guide.
  25. ## Windows
  26. There are no published packages for Windows. This page will change when packages are published,
  27. in the form of `MSI` installers or via [Chocolatey](https://chocolatey.org/). In the meantime
  28. the [deployment from binary]({{< relref "from-binary.en-us.md" >}}) guide.
  29. ## macOS
  30. Currently, the only supported method of installation on MacOS is [Homebrew](http://brew.sh/).
  31. Following the [deployment from binary]({{< relref "from-binary.en-us.md" >}}) guide may work,
  32. but is not supported. To install Gitea via `brew`:
  33. ```
  34. brew tap go-gitea/gitea
  35. brew install gitea
  36. ```
  37. ## FreeBSD
  38. A FreeBSD port `www/gitea` is available. To install the pre-built binary package:
  39. ```
  40. pkg install gitea
  41. ```
  42. For the most up to date version, or to build the port with custom options,
  43. [install it from the port](https://www.freebsd.org/doc/handbook/ports-using.html):
  44. ```
  45. su -
  46. cd /usr/ports/www/gitea
  47. make install clean
  48. ```
  49. The port uses the standard FreeBSD file system layout: config files are in `/usr/local/etc/gitea`,
  50. bundled templates, options, plugins and themes are in `/usr/local/share/gitea`, and a start script
  51. is in `/usr/local/etc/rc.d/gitea`.
  52. To enable Gitea to run as a service, run `sysrc gitea_enable=YES` and start it with `service gitea start`.