# Install chsrc with Homebrew, Nix, scoop, winget

Change Source for every software on every platform from the command-line. Version 0.2.5 via Homebrew; verified 2026-06-15.

## Install

```sh
sudo av install brew:chsrc
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install chsrc
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#chsrc
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ch/chsrc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/chsrc
```

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

- winget (92%):

```sh
winget install --id RubyMetric.chsrc -e
```

  Evidence: Windows Package Manager source index: RubyMetric.chsrc from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:chsrc
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/chsrc>
- **Version:** 0.2.5
- **Source summary:** Change Source for every software on every platform from the command-line
- **Homepage:** <https://chsrc.run/>
- **Repository:** <https://github.com/RubyMetric/chsrc>
- **Upstream docs:** <https://github.com/RubyMetric/chsrc#readme>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://github.com/RubyMetric/chsrc/archive/refs/tags/v0.2.5.tar.gz>
- **Last updated:** 2026-06-15T10:20:12-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- chsrc (cli)
- chsrc (alias)

## 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-08
- Package-manager version: 0.2.5
- Package-manager updated: 2026-06-15
- Local data: ok
- Upstream repository: https://github.com/RubyMetric/chsrc
- Upstream latest detected: v0.2.5 (current)
## Project history and usage

chsrc is a cross-platform command-line tool and framework for switching software download and package sources, aimed especially at environments where mirror choice affects install speed or reachability.

### Project history

The public GitHub repository was created in September 2023, and the README describes the project as a C11-based tool intended to avoid forcing users to install a large interpreted-language runtime just to change sources. Its docs frame chsrc as both a CLI and a recipe-oriented source-switching framework.

### Adoption history

The upstream README documents packaging through Homebrew, Scoop, WinGet, and AUR, while the batch input also records Nix packaging. The README says the tool supports more than 65 source-changing targets, which gives it a broader scope than one-off mirror-switch scripts.

### How it is used

Typical use is to list supported targets and mirrors, measure mirror speed, set a target to the fastest or selected mirror, inspect the current source, or reset a target to its upstream default. The README shows package-manager installation plus curl-based installers for POSIX and Windows systems.

### Why package nerds care

chsrc matters to package-manager users because it treats mirror selection as a repeatable CLI workflow across many ecosystems rather than as hand-edited per-tool configuration. Its package-manager distribution also makes it a meta-package-management utility: a package installed by package managers to reconfigure package sources.

### Timeline

- 2023: Public GitHub repository created.
- 2024: Pre-release binaries published on GitHub Releases.
- 2025: v0.2.0 and later releases continued the packaged CLI line.
- 2026: Homebrew formula tracks v0.2.5.

### Related projects

- The README references chsrc-bootstrap for platforms without prebuilt binaries and describes recipes as the way contributors add new source-changing targets.

### Sources

- <https://github.com/RubyMetric/chsrc>
- <https://github.com/RubyMetric/chsrc#readme>
- <https://api.github.com/repos/RubyMetric/chsrc>
- <https://api.github.com/repos/RubyMetric/chsrc/releases>
- <https://formulae.brew.sh/api/formula/chsrc.json>


## 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:** chsrc
- **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

## Other Package-Manager Records

- Nix - chsrc: normalized package name match | nixpkgs package indexes: pkgs/by-name/ch/chsrc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/chsrc: normalized package name match | Scoop official bucket manifest trees: bucket/chsrc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - RubyMetric.chsrc: normalized package name match | Windows Package Manager source index: RubyMetric.chsrc from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [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.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [pixi](https://www.automicvault.com/pkg/brew/pixi/) - Shares av.db curated category or tags: cli, cross-platform, developer-tools, package-management.
- [rattler-build](https://www.automicvault.com/pkg/brew/rattler-build/) - Shares av.db curated category or tags: cli, cross-platform, developer-tools, package-management.
- [akku](https://www.automicvault.com/pkg/brew/akku/) - Shares av.db curated category or tags: cli, developer-tools, package-management.
- [bower](https://www.automicvault.com/pkg/brew/bower/) - Shares av.db curated category or tags: cli, developer-tools, package-management.
- [brew-gem](https://www.automicvault.com/pkg/brew/brew-gem/) - Shares av.db curated category or tags: cli, developer-tools, package-management.
- [cabal-install](https://www.automicvault.com/pkg/brew/cabal-install/) - Shares av.db curated category or tags: cli, developer-tools, package-management.
- [cargo-binstall](https://www.automicvault.com/pkg/brew/cargo-binstall/) - Shares av.db curated category or tags: cli, developer-tools, package-management.
- [clib](https://www.automicvault.com/pkg/brew/clib/) - Shares av.db curated category or tags: cli, developer-tools, package-management.
- [brename](https://www.automicvault.com/pkg/brew/brename/) - Local package facts share a topical domain. Shared terms: cli, command-line, cross, cross-platform, developer.

## Combined YAML source

View the package source record on GitHub. [combined/chsrc.yml](https://github.com/automic-vault/db/blob/main/combined/chsrc.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
