Automic VaultAutomic Vault

brew

使用 Homebrew, Nix, scoop, winget 安装 chsrc

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install chsrc

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#chsrc

nixpkgs package indexes · pkgs/by-name/ch/chsrc/package.nix · 来源: api.github.com

Windows

Scoop已验证 · 92%
scoop install main/chsrc

Scoop official bucket manifest trees · bucket/chsrc.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id RubyMetric.chsrc -e

Windows Package Manager source index · RubyMetric.chsrc · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Change Source for every software on every platform from the command-line

命令和别名

  • chsrc

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

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

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.

时间线

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

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
chsrccli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本0.2.5
管理器更新时间2026-06-15
本地数据OK
上游当前
检测到的最新版本v0.2.5

https://github.com/RubyMetric/chsrc

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:chsrc
版本0.2.5
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/chsrc
主页https://chsrc.run/
仓库https://github.com/RubyMetric/chsrc
上游文档https://github.com/RubyMetric/chsrc#readme
许可证GPL-3.0-or-later
源码归档https://github.com/RubyMetric/chsrc/archive/refs/tags/v0.2.5.tar.gz
最后更新2026-06-15T10:20:12-04:00
Pulseupdated
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namechsrc
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

chsrc

nix profile install nixpkgs#chsrc
  • normalized package name match
  • 匹配方式:Chsrc
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ch/chsrc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Scoop95%

main/chsrc

scoop install main/chsrc
  • normalized package name match
  • 匹配方式:Chsrc
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/chsrc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

RubyMetric.chsrc

winget install --id RubyMetric.chsrc -e
  • normalized package name match
  • 匹配方式:Chsrc
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: RubyMetric.chsrc from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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