# Install fork-cleaner with Homebrew, MacPorts, Nix, winget

Cleans up old and inactive forks on your GitHub account. Version 2.4.0 via Homebrew; verified 2026-07-16. Also installable with nix: nix profile install nixpkgs#fork-cleaner.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

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

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:fork-cleaner
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/fork-cleaner>
- **Version:** 2.4.0
- **Source summary:** Cleans up old and inactive forks on your GitHub account
- **Homepage:** <https://github.com/caarlos0/fork-cleaner>
- **Repository:** <https://github.com/caarlos0/fork-cleaner>
- **Upstream docs:** <https://github.com/caarlos0/fork-cleaner#readme>
- **License:** MIT
- **Source archive:** <https://github.com/caarlos0/fork-cleaner/archive/refs/tags/v2.4.0.tar.gz>
- **Last updated:** 2026-07-16T11:13:54+09:00
- **Generated:** 2026-07-26T07:20:29+00:00

## Executables

- fork-cleaner (cli)
- fork-cleaner (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-26
- Package-manager version: 2.4.0
- Package-manager updated: 2026-07-16
- Local data: ok
- Upstream repository: https://github.com/caarlos0/fork-cleaner
- Upstream latest detected: v2.4.0 (current)
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **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

## Other Package-Manager Records

- 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [autocode](https://www.automicvault.com/pkg/brew/autocode/) - Shares av.db curated category or tags: cli, developer-tools, github.
- [dra](https://www.automicvault.com/pkg/brew/dra/) - Shares av.db curated category or tags: cli, developer-tools, github.
- [fetch](https://www.automicvault.com/pkg/brew/fetch/) - Shares av.db curated category or tags: cli, developer-tools, github.
- [gcli](https://www.automicvault.com/pkg/brew/gcli/) - Shares av.db curated category or tags: cli, developer-tools, github.
- [gh](https://www.automicvault.com/pkg/brew/gh/) - Shares av.db curated category or tags: cli, developer-tools, github.
- [ghi](https://www.automicvault.com/pkg/brew/ghi/) - Shares av.db curated category or tags: cli, developer-tools, github.
- [ghorg](https://www.automicvault.com/pkg/brew/ghorg/) - Shares av.db curated category or tags: cli, developer-tools, github.
- [gibo](https://www.automicvault.com/pkg/brew/gibo/) - Shares av.db curated category or tags: cli, developer-tools, github.
- [git-trim](https://www.automicvault.com/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/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/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)


## Sources

- 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
