chsrc(1)
๐ฆ NAME
chsrc โ Change Source for every software on every platform from the command line โจ like it literally does what it says, no cap, one CLI to swap sources for everything.
This is chsrc(1) from the RubyMetric chsrc fam, bestie โ buckle up ๐
๐ธ SYNOPSIS
chsrc <command> [options] [dish] [mirror]
That's the whole vibe check: a command, some options, then maybe a dish and maybe a mirror. Simple. Iconic. Periodt ๐
๐ DESCRIPTION
Okay so here's the tea โ chsrc is organized into four little families of commands and I'm gonna walk you through each one, no skipping, we're doing all of it ๐ซถ
ๅบๆฌๅฝไปค (basic commands) ๐ง
helpโ prints this help. also answers toh,-h, and--helpbecause it's that girl with the many nicknames.issueโ go peek at the related issue.list(orls, orl) โ lists the available mirrors, plus the dishes you're allowed to change the source of.list mirror/dishโ lists the available mirrors, or the dishes you can switch sources on. Andlist os/lang/warelists the switchable operating systems / programming languages / software. literally so organized ๐
ๆต้ๅฝไปค (speed test commands) ๐ฅ
measure/cesu<dish>โ runs a speed test against every source for that dish. all of them. we're thorough here.
ๆฅ็้ ็ฝฎๅฝไปค (peek-at-the-config commands) ๐
list<dish>โ shows the available sources for that dish and which features it supports.get<dish>โ shows how that dish's current source is doing / which source it's on.
ๆขๆบๅฝไปค (the actual source-swapping commands) ๐
set<dish>โ swaps the source. it auto-run a speed test first, then picks the fastest one for you ๐โโ๏ธ๐จset<dish>firstโ swaps the source using the one the maintenance team speed-tested as number one.set<dish><mirror>โ swaps to a specific mirror you name (you can find them vialist <dish>).set<dish><https://url>โ swaps to your very own custom source URL, main character energy, you do you ๐reset<dish>โ resets it back to the source upstream defaults to.
โจ OPTIONS โจ
-dryโ Dry Run, bestie. it simulates the whole source-swap process; the command only prints what it would do and does not actually run it. rehearsal era ๐-scopeโ sets the scope of the source swap. the values you can pick are:project|user|system|default(check what your dish supports withls <dish>).-ipv6โ do the speed test over IPv6.-en/-englishโ output in English.-no-colorโ output with no color at all.
๐ EXIT STATUS
0โ ran normally; usually means the source swap succeeded ๐1โ an error caused by your environment, like a missing command ๐ญ2โchsrcdoesn't support this yet. not implemented, soz ๐3โ a mirror/source-info error caused by the maintainer ๐ซ4โ fatal error, caused by an internal bug ๐5โ fatal unknown error, which usually means an internal unknown bug. yeah. that one. ๐ฌ
๐ EXAMPLES
# ๆต้๏ผๅฏปๆพๆๅฟซ่
๏ผๆขๆบ
$ chsrc set ruby
# ๅๅบๅฏ็จ็้ๅ็ซ
# ไฝฟ็จ RubyChina ไฝไธบ้ๅ็ซ
$ chsrc ls ruby
$ chsrc set ruby rubychina
# ๅฏไปฅไฝฟ็จ่ชๅฎไนURL
$ chsrc set ruby https://gems.ruby-china.com/
# ไฝฟ็จ็ปดๆคๅข้ๆต่ฏ็ๆๅฟซ้ๅ็ซ
$ chsrc set ruby first
Look at that. flawless. ate and left no crumbs ๐ฅ
๐ FILES
We follow the No UFO (Unidentified File Objects) principle: https://www.yuque.com/ccmywish/blog/no-ufo
So there will be no files stored on your computer at all! not one! your filesystem stays clean, bestie ๐งโจ
๐ AUTHOR
Written by Aoran Zeng, Heng Guo and contributors. (See chsrc.c)
๐ REPORTING BUGS
On Gitee: https://gitee.com/RubyMetric/chsrc/issues On GitHub: https://github.com/RubyMetric/chsrc/issues
come yell at us (lovingly) ๐ซถ
๐ COPYRIGHT
Copyright (C) 2026 Aoran Zeng, Heng Guo. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
ok that warranty bit is real โ NO WARRANTY, to the extent permitted by law. don't come for us ๐
version v0.2.6, dated 2026-08-12 โ that's the whole chsrc(1) page, mwah, ily, go change some sources ๐๐ฆโจ
๐ฆ where this page comes from
- nixpkgs unstable: chsrc 0.2.7
- ๐ the page's license: GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms