Files
dcr/docs/getting-started/installation.md
2026-02-26 18:09:07 +08:00

1007 B

Installation

Option 1: Install via script

Linux/macOS

curl -fsSL https://dcr.dexoron.su/install.sh | bash

Alternative with wget:

wget -qO- https://dcr.dexoron.su/install.sh | bash

Windows (PowerShell)

powershell -ExecutionPolicy ByPass -c "irm https://dcr.dexoron.su/install.ps1 | iex"

Option 2: Build from source

git clone https://github.com/dexoron/dcr.git
cd dcr
cargo build --release
mkdir -p ~/.local/bin
ln -sf "$PWD/target/release/dcr" ~/.local/bin/dcr

Option 3: Arch Linux (AUR)

yay -S dcr

(You can also use paru or other AUR helpers.)

Verify installation

dcr --version

Expected format:

dcr <version> (<target>)

Update policy

  • If DCR was installed from GitHub releases, scripts, or manual build: use dcr --update.
  • If DCR is managed by pacman/AUR: update via package manager. On Linux, dcr --update detects pacman-owned binaries and prints a package-manager hint.