Install
get linr on your machine
linr is a single self-contained Rust binary — no runtime, no dependencies. The vendor
curl | sh installer below is the recommended way in; other paths follow.
Vendor install (curl | sh) — recommended
The site hosts install.sh, so the first install is a short bootstrap that drops the binary on
your PATH and records an install receipt — so linr can update itself later in place with
linr self update:
curl --proto '=https' --tlsv1.2 -LsSf https://linr.ysapp.net/install.sh | sh
This is the recommended method: the receipt is what lets linr self update upgrade the binary
in place. Installs from other paths (Homebrew, Cargo) do not write a receipt and upgrade
through their own package manager instead.
Alternatives
Homebrew (macOS and Linux)
Once the tap ships a formula, Homebrew works too — upgrades come through brew upgrade
(a Homebrew install does not self-update via linr self update):
brew install dixson3/tap/linr
brew upgrade linr # update later
The dixson3/tap tap does not ship a linr formula yet; this is the intended shape once it does.
Cargo
cargo install --git https://github.com/dixson3/linr
Build from source
git clone https://github.com/dixson3/linr.git
cd linr
cargo build --release # binary at target/release/linr
# Optionally put this build on your PATH:
./target/release/linr self install
Which one should I use?
| Path | Self-updates in place | Best for |
|---|---|---|
Vendor install curl \| sh |
yes (linr self update) |
most people — fast install + in-place updates |
| Homebrew | no (use brew upgrade) |
macOS/Linux users already on Homebrew |
| Cargo | no (manual re-install) | Rust developers |
| From source | no (manual re-build) | hacking on linr |
Self-update
linr self manages the binary itself. linr self update only upgrades a vendor install (the
curl | sh installer above), which records an install receipt; Homebrew installs upgrade via
brew upgrade linr, and Cargo/source installs are re-installed manually.
linr self update # fetch the latest release and swap in place
linr self update --check # report whether an update is available; change nothing
linr self install # record the running binary on your PATH