# 使用 Homebrew, apk, chocolatey, Nix, pacman, scoop 安装 gitea

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

## 安装

```sh
sudo av install brew:gitea
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gitea
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add gitea
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#gitea
```

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

- pacman (92%):

```sh
sudo pacman -S gitea
```

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

### Windows

- Chocolatey (92%):

```sh
choco install gitea
```

  证据: Chocolatey community package catalog: gitea from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','fusioninventory-agent'

- Scoop (92%):

```sh
scoop install main/gitea
```

  证据: Scoop official bucket manifest trees: bucket/gitea.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:gitea
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gitea>
- **版本:** 1.27.1
- **来源摘要:** Painless self-hosted all-in-one software development service
- **主页:** <https://about.gitea.com/>
- **仓库:** <https://github.com/go-gitea/gitea>
- **上游文档:** <https://about.gitea.com/>
- **许可证:** MIT
- **源码归档:** <https://dl.gitea.com/gitea/1.27.1/gitea-src-1.27.1.tar.gz>
- **最后更新:** 2026-07-28T03:39:48Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gitea (cli)
- gitea (别名)

## 构建依赖

- go

## macOS 提供的库

- sqlite

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.27.1
- 管理器更新时间: 2026-07-28
- 本地数据: OK
- 上游仓库: https://about.gitea.com/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Gitea is a self-hosted software development service written in Go. It combines Git hosting, code review, issues, pull requests, wiki, packages, project management, and Actions-style CI/CD in a single server that can run across the platforms supported by Go.

### 项目历史

Gitea's code lineage includes early Gogs commits from 2014, and the Gitea project identity appears in repository history in 2016 as maintainers replaced Gogs branding and prepared the first 1.0 release. Version 1.0.0 was tagged in December 2016, giving the fork a stable release base under the Gitea name.

After the fork, Gitea broadened from lightweight Git hosting into an all-in-one development platform. The official README describes repository hosting, code management, review, issue tracking, kanban boards, wiki, packages, team collaboration, and CI/CD that can reuse GitHub Actions workflows.

### 采用历史

Gitea became important in the self-hosting and package-manager world because it offered a compact alternative to large forge deployments. Its Go implementation, official container image, cross-platform binaries, and presence in major package managers made it easy to deploy on personal servers, small teams' infrastructure, and organizations that prefer owning their source-control service.

The project grew an ecosystem around the core server: official documentation, SDKs, the tea CLI, Gitea Runner, translation infrastructure, cloud offerings, and community-maintained extensions listed through awesome-gitea.

### 使用方式

Practitioners use Gitea as a private or public Git forge. Administrators configure the server through app.ini, run it as a binary, service, or container, and connect it to databases, SSH, reverse proxies, package registries, and Actions runners.

Developers interact with Gitea much like other Git forges: clone and push repositories, open issues and pull requests, manage releases, publish packages, write wiki pages, and define workflows for CI jobs.

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

Gitea is a favorite package-manager entry because one formula or system package can install an entire forge with a small operational footprint. It is often chosen by users who want GitHub-like collaboration without outsourcing the service or running a heavier enterprise stack.

### 时间线

- 2014: Early code lineage begins in the Gogs repository history.
- 2016: Gitea branding and project identity appear in repository history.
- 2016: v1.0.0 is tagged under the Gitea project.
- 2023: Gitea Actions and the runner ecosystem make CI/CD a first-class part of the platform.
- 2026: 1.26.x releases continue the established server release series.

### Related projects

- Gitea is related to Gogs through its origin, to Forgejo through later ecosystem divergence, and to tea, go-sdk, and Gitea Runner as official companion projects.

### 来源

- <https://about.gitea.com/>
- <https://blog.gitea.com/release-of-1.26.3-and-1.26.4>
- <https://docs.gitea.com/>
- <https://github.com/go-gitea/gitea>


## 安全说明

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: $GITEA_CUSTOM/conf/app.ini, custom/conf/app.ini
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gitea
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - gitea: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/gitea/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - gitea - 1.25.4-r4: normalized package name match | Alpine Linux edge package indexes: gitea from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Self-hosted Git service written in Go | https://about.gitea.com/
- apk - gitea-doc - 1.25.4-r4: normalized package name match | Alpine Linux edge package indexes: gitea-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Self-hosted Git service written in Go (documentation) | https://about.gitea.com/
- apk - gitea-openrc - 1.25.4-r4: normalized package name match | Alpine Linux edge package indexes: gitea-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://about.gitea.com/
- pacman - gitea - 1.27.1-1: normalized package name match | Arch Linux sync databases: gitea from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Painless self-hosted Git service, community managed. | https://gitea.io
- Chocolatey - gitea: normalized package name match | Chocolatey community package catalog: gitea from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','fusioninventory-agent'
- Scoop - main/gitea: normalized package name match | Scoop official bucket manifest trees: bucket/gitea.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [glab](https://pkg.so/zh-hans/brew/glab/) - Shares pkgdb curated category or tags: ci-cd, cli, developer-tools, devops, git.
- [forgejo](https://pkg.so/zh-hans/brew/forgejo/) - Shares pkgdb curated category or tags: cli, code-hosting, developer-tools, git, self-hosted.
- [act](https://pkg.so/zh-hans/brew/act/) - Shares pkgdb curated category or tags: ci-cd, cli, developer-tools, devops.
- [flyway](https://pkg.so/zh-hans/brew/flyway/) - Shares pkgdb curated category or tags: ci-cd, cli, developer-tools, devops.
- [jenkins-lts](https://pkg.so/zh-hans/brew/jenkins-lts/) - Shares pkgdb curated category or tags: ci-cd, cli, developer-tools, devops.
- [jenkins](https://pkg.so/zh-hans/brew/jenkins/) - Shares pkgdb curated category or tags: ci-cd, cli, developer-tools, devops.
- [coder](https://pkg.so/zh-hans/brew/coder/) - Shares pkgdb curated category or tags: cli, developer-tools, devops, self-hosted.
- [woodpecker-cli](https://pkg.so/zh-hans/brew/woodpecker-cli/) - Shares pkgdb curated category or tags: ci-cd, cli, developer-tools, devops.
- [pipelight](https://pkg.so/zh-hans/brew/pipelight/) - Local package facts share a topical domain. Shared terms: ci-cd, cli, developer, developer-tools, hosted.
- [soft-serve](https://pkg.so/zh-hans/brew/soft-serve/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, git, hosted.

## Combined YAML source

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


## 来源

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