The ouch (Obvious Unified Compression Helper) utility is a modern, blazing-fast command-line compression and decompression tool written in Rust that simplifies handling archives (zip, tar.gz, tar.bz2, tar.xz, 7z, and zst) with unified syntax. When attempting to run ouch in minimal Linux installations, container base images, or bare-metal servers, bash returns bash: ouch: command not found because the utility is not part of default Linux distributions.
Install ouch via Pre-Built Release Binaries
For minimal Linux environments without Rust toolchains, installing the standalone pre-compiled release binary is the fastest method:
# Download latest release binary archive for Linux x86_64
curl -sSL https://github.com/ouch-org/ouch/releases/latest/download/ouch-x86_64-unknown-linux-musl.tar.gz -o /tmp/ouch.tar.gz
# Extract the binary directly into system bin
sudo tar -xzf /tmp/ouch.tar.gz -C /usr/local/bin/ --strip-components=1
# Grant executable execution permissions
sudo chmod +x /usr/local/bin/ouch
# Clean temporary files
rm -f /tmp/ouch.tar.gz
# Verify installation
ouch --version
Install via Distribution Package Managers
Modern Linux package repositories include ouch natively:
# On Arch Linux:
sudo pacman -S ouch
# On Alpine Linux (Edge/Testing):
apk add ouch
# On systems with Homebrew:
brew install ouch
Compile and Install via Cargo
If you have Rust and Cargo installed in your developer environment:
# Compile and install ouch binary to ~/.cargo/bin
cargo install ouch
# Ensure ~/.cargo/bin is in your shell PATH
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc