# 使用 Homebrew, MacPorts, Nix, winget 安装 fork-cleaner

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

## 安装

```sh
sudo av install brew:fork-cleaner
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fork-cleaner
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fork-cleaner
```

  证据: MacPorts ports tree: devel/fork-cleaner/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#fork-cleaner
```

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

### Windows

- winget (92%):

```sh
winget install --id caarlos0.fork-cleaner -e
```

  证据: Windows Package Manager source index: caarlos0.fork-cleaner from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:fork-cleaner
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/fork-cleaner>
- **版本:** 2.4.0
- **来源摘要:** Cleans up old and inactive forks on your GitHub account
- **主页:** <https://github.com/caarlos0/fork-cleaner>
- **仓库:** <https://github.com/caarlos0/fork-cleaner>
- **上游文档:** <https://github.com/caarlos0/fork-cleaner#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/caarlos0/fork-cleaner/archive/refs/tags/v2.4.0.tar.gz>
- **最后更新:** 2026-07-16T11:13:54+09:00
- **已生成:** 2026-07-26T07:20:29+00:00

## 可执行文件

- fork-cleaner (cli)
- fork-cleaner (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-26
- 管理器版本: 2.4.0
- 管理器更新时间: 2026-07-16
- 本地数据: OK
- 上游仓库: https://github.com/caarlos0/fork-cleaner
- 检测到的最新版本: v2.4.0 (当前)
## 项目历史与用法

fork-cleaner is a small Go command-line utility for cleaning old and inactive forks from a GitHub account. Its official README frames it as an interactive maintenance tool that enumerates forked repositories, checks upstream repository state, and lets the user pass a GitHub token with repository deletion permissions.

### 项目历史

The GitHub repository was created in October 2016 and is maintained under the caarlos0 account. The project follows the author's usual Go CLI release style, with GitHub releases and binary/package installation paths advertised from the README.

### 采用历史

Official installation instructions cover Homebrew, snap, apt, yum, distro packages, release binaries, and source builds, indicating that the tool was packaged for several CLI distribution channels rather than only as source code.

### 使用方式

Users create a GitHub personal access token with repository and delete-repository scopes, pass it with the --token flag, and let fork-cleaner list forked repositories oldest first. A --skip-upstream option exists for accounts with many forks or GitHub API rate-limit pressure.

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

fork-cleaner is notable as a purpose-built repository-hygiene CLI: it packages an otherwise manual GitHub-account cleanup workflow into a small installable binary, with GoReleaser-style binary distribution and multiple package-manager entry points.

### 时间线

- 2016: GitHub repository created.
- 2021: 2.0-series releases published.
- 2026: 2.4.0 release published.

### Related projects

- The project is related to GitHub account and repository maintenance tools, and its README links to GoReleaser as part of its release/distribution setup.

### 来源

- <https://api.github.com/repos/caarlos0/fork-cleaner>
- <https://api.github.com/repos/caarlos0/fork-cleaner/releases?per_page=20>
- <https://github.com/caarlos0/fork-cleaner>
- <https://raw.githubusercontent.com/caarlos0/fork-cleaner/main/README.md>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

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

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

- Nix - fork-cleaner: normalized package name match | nixpkgs package indexes: pkgs/by-name/fo/fork-cleaner/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - fork-cleaner: normalized package name match | MacPorts ports tree: devel/fork-cleaner/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - caarlos0.fork-cleaner: normalized package name match | Windows Package Manager source index: caarlos0.fork-cleaner from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [autocode](https://www.automicvault.com/zh-hans/pkg/brew/autocode/) - Shares av.db curated category or tags: cli, developer-tools, github.
- [dra](https://www.automicvault.com/zh-hans/pkg/brew/dra/) - Shares av.db curated category or tags: cli, developer-tools, github.
- [fetch](https://www.automicvault.com/zh-hans/pkg/brew/fetch/) - Shares av.db curated category or tags: cli, developer-tools, github.
- [gcli](https://www.automicvault.com/zh-hans/pkg/brew/gcli/) - Shares av.db curated category or tags: cli, developer-tools, github.
- [gh](https://www.automicvault.com/zh-hans/pkg/brew/gh/) - Shares av.db curated category or tags: cli, developer-tools, github.
- [ghi](https://www.automicvault.com/zh-hans/pkg/brew/ghi/) - Shares av.db curated category or tags: cli, developer-tools, github.
- [ghorg](https://www.automicvault.com/zh-hans/pkg/brew/ghorg/) - Shares av.db curated category or tags: cli, developer-tools, github.
- [gibo](https://www.automicvault.com/zh-hans/pkg/brew/gibo/) - Shares av.db curated category or tags: cli, developer-tools, github.
- [git-trim](https://www.automicvault.com/zh-hans/pkg/brew/git-trim/) - Local package facts share a topical domain. Shared terms: cleanup, cli, developer, developer-tools, maintenance.
- [git-fresh](https://www.automicvault.com/zh-hans/pkg/brew/git-fresh/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, maintenance, repository.
- [git-tools](https://www.automicvault.com/zh-hans/pkg/brew/git-tools/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, maintenance, repository.

## Combined YAML source

View the package source record on GitHub. [combined/fork-cleaner.yml](https://github.com/automic-vault/db/blob/main/combined/fork-cleaner.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
