| name | install |
| description | Install software any way the system allows. Recommends `x install` — one front door listing every
method and picking the best; plus `x eget`/`x env use`/`x pixi` channels and system package managers
with mirror switching. All x-cmd channels install in $HOME — no sudo, no pollution.
Use for "install", "apt", "brew", "eget", "pixi", "package manager", "mirror".
|
| metadata | {"version":"0.1.0","category":"package-management","tags":["install","package-manager","eget","env","pixi","apt","brew","mirror"],"repository":"https://github.com/x-cmd/skill0","type":"skill0"} |
| x-meta | {"type":"Tool","status":"stable","related":["x-cmd","agent-browser","env"],"owner":"person:lijunhao"} |
install — skill0
Install software any way the system allows. All x-cmd channels (x eget, x env use, x pixi) install into $HOME — no sudo, no system pollution. Only system package managers (x apt, x brew, …) touch the OS and may need sudo.
Choose a channel
| Channel | Best for |
|---|
x install | Recommended. One front door — lists every method for a tool, picks the best |
x eget | Latest binaries straight from upstream repos (GitHub / Codeberg releases) |
x env use | Runtimes & tools hosted by x-cmd (wraps x pkg use) |
x pixi | conda / pixi-ecosystem packages |
x apt/brew/dnf/pacman | System package managers (may need sudo) |
Prerequisites
x-cmd provides every channel above:
eval "$(curl https://get.x-cmd.com)"
x install — the recommended front door
Every tool ships several install paths; x install auto-picks the best one. All forms below are non-interactive (agent / CI safe):
x install bun
x install --printinfo ripgrep
x install --withtool brew jq
x install --sys bun
x install --printcmd bun vim
x install --env
x install --available-tool --installed
Discover what's installable
x install --ls emits a TSV of every indexed tool — grep / awk it offline:
x install --ls --tsv | head -1
x install --ls --tsv | grep -i json
x install --ls --tsv | awk -F'\t' '$3=="Rust"'
x install --search http
TSV columns: name category lang source desc_cn desc_en binlist rule other.
Change mirrors (faster downloads)
Redirect a slow system package manager to a faster / local mirror. Each has mirror ls (list options) and mirror set <code> (apply, non-interactive):
x brew mirror ls
x brew mirror set tuna
x apt mirror set tuna
Requires the target package manager to be installed.
For more
Related
- x-cmd — umbrella entry that fronts install
- agent-browser — install routes to agent-browser when no binary exists
- env — install and env share x-channel architecture