How to Fix bash: choose: command not found in Minimal Linux Distributions

System administrators and developers parsing tabular data in the terminal frequently rely on choose, a fast and human-friendly alternative to cut and awk written in Rust. On freshly installed Linux servers, minimal cloud VPS instances, or basic docker containers, running the utility yields bash: choose: command not found because choose is not included in base GNU Coreutils.

Install choose via Native Package Repositories

Deploy choose directly using package managers where supported:

  • Arch Linux: sudo pacman -S choose
  • Alpine Linux: sudo apk add choose
  • Debian / Ubuntu: Install via Snap or Homebrew: sudo snap install choose-rust or brew install choose-rust
  • NixOS: nix-env -iA nixpkgs.choose

Download Pre-compiled Standalone Binary from GitHub

For Debian, Ubuntu, CentOS, or RHEL distributions without Snap or Homebrew, download the standalone binary release:

CHOOSE_VER=$(curl -s https://api.github.com/repos/theryangeary/choose/releases/latest | grep 'tag_name' | cut -d '"' -f 4)
curl -sL "https://github.com/theryangeary/choose/releases/download/${CHOOSE_VER}/choose-x86_64-unknown-linux-musl" -o /usr/local/bin/choose
sudo chmod +x /usr/local/bin/choose

Install via Rust Cargo

If you have the Rust development toolchain configured:

cargo install choose

Confirm the tool is accessible by running choose --version or testing column selection on standard input (e.g. echo "foo bar baz" | choose 1).

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.