# 使用 Homebrew, apk, dnf, Nix, pacman, zypper 安装 forgejo

查看 forgejo 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:forgejo
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install forgejo
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add forgejo
```

  证据: Alpine Linux edge package indexes: forgejo from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install forgejo
```

  证据: Fedora Rawhide package metadata: forgejo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#forgejo
```

  证据: nixpkgs package indexes: pkgs/by-name/fo/forgejo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S forgejo
```

  证据: Arch Linux sync databases: forgejo from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install forgejo
```

  证据: openSUSE Tumbleweed package metadata: forgejo from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:forgejo
- **软件包管理器:** Homebrew
- **版本:** 16.0.2
- **来源摘要:** Self-hosted lightweight software forge
- **主页:** <https://forgejo.org/>
- **最后更新:** 2026-07-31T00:16:38Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- forgejo (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 16.0.2
## 项目历史与用法

Forgejo is a self-hosted lightweight software forge for Git hosting, issues, pull requests, wikis, releases, packages, and related collaboration workflows. It began as a community-driven soft fork of Gitea and later became a hard fork.

### 项目历史

Forgejo launched publicly on December 15, 2022 after work by former Gitea maintainers and FOSS community members. The launch post describes it as a drop-in replacement for Gitea, started in reaction to governance changes around Gitea Ltd.

The project is hosted on Codeberg and its FAQ says Codeberg e.V. holds the Forgejo domains, provides resources, and cooperates closely with the project while Forgejo governance remains independent.

In February 2024, Forgejo announced the decision to become a hard fork, explaining that its governance, testing requirements, feature work, and goals had diverged from Gitea.

### 采用历史

Forgejo adoption is strongly linked to self-hosting and Free Software infrastructure. The project homepage emphasizes easy installation, low maintenance, a familiar GitHub-like environment, and Codeberg as a prominent Forgejo user.

Forgejo's FAQ says most users are developers of free and open source software and points to a community-maintained list of public instances with open registration.

The project moved through compatibility-oriented 1.x releases, adopted semantic-versioned v7.0 as its first LTS release in April 2024, and later changed licensing so v9.0 and newer releases are GPL-3.0-or-later.

### 使用方式

Admins install Forgejo as a server application and manage it through app.ini. The official configuration cheat sheet says local changes belong in custom/conf/app.ini and packaged installations commonly use /etc/forgejo/app.ini.

Users interact with Forgejo through the web UI, Git over SSH or HTTP, issues, pull requests, releases, package registries, and optionally Forgejo Actions.

### 为什么软件包爱好者会关心

Forgejo is significant for package-history work because it is both a packaged server application and a fork that carries compatibility, migration, release policy, and licensing implications.

It is also part of the broader software-forge family that includes Gitea, Gogs, GitLab, SourceHut, and GitHub-like hosting workflows, while deliberately emphasizing community governance and Free Software infrastructure.

### 时间线

- 2022: Forgejo launches publicly on December 15 as a community-driven Free Software project and Gitea-compatible soft fork.
- 2023: Forgejo celebrates its first year and publishes v1.21 as its fourth major release.
- 2024: Forgejo announces a hard-fork path in February.
- 2024: Forgejo v7.0 is released in April as the first LTS release and adopts semantic versioning.
- 2024: Forgejo v9.0 is released in October as the first copyleft release under GPL-3.0-or-later.
- 2025: Forgejo v11.0 is released in April as an LTS release.
- 2026: Forgejo v15.0 is released in April as an LTS release supported until July 15, 2027.

### Related projects

- Forgejo is directly related to Gitea, from which it began as a soft fork, and to the earlier Gogs lineage through Gitea.
- Forgejo ecosystem projects include forgejo-runner, Forgejo Actions, Forgejo CLI, Forgejo Helm chart, and forge federation work based around ForgeFed and ActivityPub.

### 来源

- <https://codeberg.org/api/v1/repos/forgejo/forgejo>
- <https://codeberg.org/forgejo/forgejo/raw/branch/forgejo/README.md>
- <https://forgejo.org/>
- <https://forgejo.org/2022-12-15-hello-forgejo/>
- <https://forgejo.org/2024-02-forking-forward/>
- <https://forgejo.org/docs/latest/admin/config-cheat-sheet/>
- <https://forgejo.org/faq/>
- <https://forgejo.org/releases/>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: custom/conf/app.ini, /etc/forgejo/app.ini
## 其他软件包管理器记录

- Nix - forgejo: normalized package name match | nixpkgs package indexes: pkgs/by-name/fo/forgejo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - forgejo - 16.0.1-r0: normalized package name match | Alpine Linux edge package indexes: forgejo from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Self-hosted Git service written in Go | https://forgejo.org
- apk - forgejo-openrc - 16.0.1-r0: normalized package name match | Alpine Linux edge package indexes: forgejo-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Self-hosted Git service written in Go (OpenRC init scripts) | https://forgejo.org
- apk - forgejo-systemd - 16.0.1-r0: normalized package name match | Alpine Linux edge package indexes: forgejo-systemd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Self-hosted Git service written in Go (systemd files) | https://forgejo.org
- dnf - forgejo - 15.0.6-1.fc45: normalized package name match | Fedora Rawhide package metadata: forgejo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A lightweight software forge | https://forgejo.org
- pacman - forgejo - 16.0.2-1: normalized package name match | Arch Linux sync databases: forgejo from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A lightweight software forge | https://forgejo.org
- zypper - forgejo - 16.0.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: forgejo from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Self-hostable forge | https://forgejo.org
- zypper - forgejo-apparmor - 16.0.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: forgejo-apparmor from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Apparmor profile for forgejo | https://forgejo.org
- zypper - forgejo-environment-to-ini - 16.0.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: forgejo-environment-to-ini from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Configuration params via environment variables for forgejo | https://forgejo.org
- zypper - forgejo-firewalld - 16.0.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: forgejo-firewalld from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Firewalld profile for forgejo | https://forgejo.org
- zypper - forgejo-selinux - 16.0.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: forgejo-selinux from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Selinux support for forgejo | https://forgejo.org


## Combined YAML source

View the package source record on GitHub. [combined/forgejo.yml](https://github.com/mxcl/pkgdb/blob/main/combined/forgejo.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
