1---
2date: "2016-12-01T16:00:00+02:00"
3title: "Installation from package"
4slug: "install-from-package"
5weight: 20
6toc: false
7draft: false
8menu:
9  sidebar:
10    parent: "installation"
11    name: "From package"
12    weight: 20
13    identifier: "install-from-package"
14---
15
16# Installation from package
17
18**Table of Contents**
19
20{{< toc >}}
21
22## Alpine Linux
23
24Alpine Linux has [Gitea](https://pkgs.alpinelinux.org/packages?name=gitea&branch=edge) in its community repository which follows the latest stable version.
25
26```sh
27apk add gitea
28```
29
30## Arch Linux
31
32The rolling release distribution has [Gitea](https://www.archlinux.org/packages/community/x86_64/gitea/) in their official community repository and package updates are provided with new Gitea releases.
33
34```sh
35pacman -S gitea
36```
37
38## Arch Linux ARM
39
40Arch Linux ARM provides packages for [aarch64](https://archlinuxarm.org/packages/aarch64/gitea), [armv7h](https://archlinuxarm.org/packages/armv7h/gitea) and [armv6h](https://archlinuxarm.org/packages/armv6h/gitea).
41
42```sh
43pacman -S gitea
44```
45
46## Canonical Snap
47
48There is a [Gitea Snap](https://snapcraft.io/gitea) package which follows the latest stable version.
49
50``sh
51snap install gitea
52``
53
54## SUSE and openSUSE
55
56OpenSUSE build service provides packages for [openSUSE and SLE](https://software.opensuse.org/download/package?package=gitea&project=devel%3Atools%3Ascm)
57in the Development Software Configuration Management Repository
58
59## Windows
60
61There is a [Gitea](https://chocolatey.org/packages/gitea) package for Windows by [Chocolatey](https://chocolatey.org/).
62
63```sh
64choco install gitea
65```
66
67Or follow the [deployment from binary]({{< relref "from-binary.en-us.md" >}}) guide.
68
69## macOS
70
71Currently, the only supported method of installation on MacOS is [Homebrew](http://brew.sh/).
72Following the [deployment from binary]({{< relref "from-binary.en-us.md" >}}) guide may work,
73but is not supported. To install Gitea via `brew`:
74
75```
76brew tap gitea/tap https://gitea.com/gitea/homebrew-gitea
77brew install gitea
78```
79
80## FreeBSD
81
82A FreeBSD port `www/gitea` is available. To install the pre-built binary package:
83
84```
85pkg install gitea
86```
87
88For the most up to date version, or to build the port with custom options,
89[install it from the port](https://www.freebsd.org/doc/handbook/ports-using.html):
90
91```
92su -
93cd /usr/ports/www/gitea
94make install clean
95```
96
97The port uses the standard FreeBSD file system layout: config files are in `/usr/local/etc/gitea`,
98bundled templates, options, plugins and themes are in `/usr/local/share/gitea`, and a start script
99is in `/usr/local/etc/rc.d/gitea`.
100
101To enable Gitea to run as a service, run `sysrc gitea_enable=YES` and start it with `service gitea start`.
102
103## Third-party
104
105Various other third-party packages of Gitea exist.
106To see a curated list, head over to [awesome-gitea](https://gitea.com/gitea/awesome-gitea/src/branch/master/README.md#user-content-packages).
107
108Do you know of an existing package that isn't on the list? Send in a PR to get it added!
109