# 使用 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
- **版本:** 1.27.1
- **来源摘要:** Painless self-hosted all-in-one software development service
- **主页:** <https://about.gitea.com/>
- **仓库:** <https://github.com/go-gitea/gitea>
- **最后更新:** 2026-07-28T03:39:48Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gitea (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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
## 其他软件包管理器记录

- 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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
