docs/getting-started/installation.mdx
git clone [email protected]:...ssh-keygen installed and available via the %PATH% environment variable.If you choose to use MySQL or PostgreSQL as your database backend, you need to first complete the initial database creation.
<Tabs> <Tab title="PostgreSQL"> Create a database user and database:```bash
psql -c "CREATE USER gogs WITH PASSWORD '{YOUR_PASSWORD}';"
psql -c "CREATE DATABASE gogs OWNER gogs ENCODING 'UTF8';"
```
```zsh
mysql -u root -p < scripts/mysql.sql
```
<Note>
**For Windows users:**
Release archives containing `mws` come with built-in Windows service support. If you prefer to manage the service using [NSSM](https://nssm.cc), download the standard version instead.
</Note>
Once extracted the archive, run `gogs web` to start the server. Use `gogs web --help` to see all available options.
|Source| Description | Note|
|------|------------------------------------------|-----|
|Packager.io ([link](https://packager.io/gh/gogs/gogs))|Every commit of `main`|After installation, place custom configuration in `/etc/default/gogs`.|
|Arch User Repository ([link](https://aur.archlinux.org/packages/gogs/))| Stable releases | Detailed instructions available in the [Arch Linux Wiki entry](https://wiki.archlinux.org/title/Gogs). |