# 使用 Homebrew, apt, Nix, winget 安装 gittuf

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

## 安装

```sh
sudo av install brew:gittuf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gittuf
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install gittuf
```

  证据: Debian stable package indexes: gittuf from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#gittuf
```

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

### Windows

- winget (92%):

```sh
winget install --id gittuf.gittuf -e
```

  证据: Windows Package Manager source index: gittuf.gittuf from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:gittuf
- **软件包管理器:** Homebrew
- **版本:** 0.15.0
- **来源摘要:** Security layer for Git repositories
- **主页:** <https://gittuf.dev/>
- **仓库:** <https://github.com/gittuf/gittuf>
- **最后更新:** 2026-07-27T14:57:49+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-remote-gittuf (别名)
- gittuf (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

gittuf is a Git repository security system that brings The Update Framework-style policy metadata, signed trust roots, and independent verification to source control. Its main claim to package-manager relevance is that it treats Git history and Git references as supply-chain assets rather than merely developer convenience data.

### 项目历史

The gittuf repository was opened in 2022, with the project describing itself as a platform-agnostic Git security system. Its README states that repository maintainers can use gittuf to protect repository contents from unauthorized or malicious changes and to avoid making a Git forge the single point of trust.

The first GitHub release, v0.1.0, was published in October 2023. The roadmap shows the project evolving through alpha and beta milestones, policy files, a reference state log, metadata synchronization, and dogfooding of the gittuf repository itself.

The design expanded beyond basic reference protection into supply-chain attestations. The roadmap records in-toto attestation support as reached by April 2024 and describes work on Git forge integration, including a GitHub app that records code-review and merge attestations and reports verification status on pull requests.

### 采用历史

gittuf's adoption story is institutional as well as technical: the README identifies it as an incubating Open Source Security Foundation project in the Supply Chain Integrity Working Group. Packaging across Homebrew, Debian, Nix, and WinGet gives the tool the installation surface expected for security tooling that may be evaluated by teams on different operating systems.

The project sits near Sigstore, gitsign, in-toto, and SLSA in the software supply-chain ecosystem. Its distinguishing role is source-control policy verification that can be checked outside any one forge.

### 使用方式

A typical workflow starts by generating keys, initializing a Git repository, running `gittuf trust init`, adding policy keys, creating policy rules for protected branches or files, staging and applying policy metadata, and recording reference changes in the reference state log.

Practitioners use `gittuf verify-ref` to check whether a reference follows policy, `gittuf sync` or the `git-remote-gittuf` transport to move gittuf metadata with remote repositories, and manual Git ref pushes or fetches for environments that prefer explicit metadata handling.

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

gittuf matters to package nerds because it frames source repository state as an input to downstream package trust. It complements artifact signing and provenance by asking whether the Git branch, tag, or file path that produced a package was changed by an authorized identity under an auditable policy.

### 时间线

- 2022: Public GitHub repository opened.
- 2023: v0.1.0 release published.
- 2024: Roadmap records in-toto attestation integration as reached.
- 2025: Roadmap describes GitHub app integration work for pull-request attestations and policy verification status checks.

### Related projects

- The Update Framework.
- OpenSSF Supply Chain Integrity Working Group.
- Sigstore, gitsign, in-toto, and SLSA.
- GitHub and GitLab repository policy systems.

### 来源

- <https://api.github.com/repos/gittuf/gittuf>
- <https://api.github.com/repos/gittuf/gittuf/releases>
- <https://formulae.brew.sh/formula/gittuf>
- <https://github.com/gittuf/gittuf>
- <https://gittuf.dev/documentation>
- <https://gittuf.dev/quickstart>
- <https://raw.githubusercontent.com/gittuf/gittuf/main/README.md>
- <https://raw.githubusercontent.com/gittuf/gittuf/main/docs/get-started.md>
- <https://raw.githubusercontent.com/gittuf/gittuf/main/docs/roadmap.md>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - gittuf - 0.9.0-5+b6: normalized package name match | Debian stable package indexes: gittuf from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | security layer for Git repositories (program) | https://github.com/gittuf/gittuf
- Debian apt - golang-github-gittuf-gittuf-dev - 0.9.0-5: normalized package name match | Debian stable package indexes: golang-github-gittuf-gittuf-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | security layer for Git repositories (Go library) | https://github.com/gittuf/gittuf
- Nix - gittuf: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/gittuf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- winget - gittuf.gittuf: normalized package name match | Windows Package Manager source index: gittuf.gittuf from https://cdn.winget.microsoft.com/cache/source.msix
- winget - gittuf.git-remote-gittuf: installed executable or alias match | Windows Package Manager source index: gittuf.git-remote-gittuf from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

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