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

The delta (git-delta) utility is a syntax-highlighting pager for Git, diff, and grep output written in Rust that transforms terminal diffs with side-by-side views, syntax highlighting, and line-level difference markers. In newly deployed minimal Linux installations, container base images, or remote VPS servers, running delta or viewing Git commits yields bash: delta: command not found because the package is not pre-installed in default distributions.

Install delta via Pre-Compiled Static Release Binary

Installing the official pre-compiled release binary is the fastest, cleanest approach for minimal systems without Rust build dependencies:

# Download latest delta archive for Linux x86_64
curl -sSL https://github.com/dandavison/delta/releases/latest/download/delta-0.18.2-x86_64-unknown-linux-musl.tar.gz -o /tmp/delta.tar.gz

# Extract binary directly into system bin
sudo tar -xzf /tmp/delta.tar.gz -C /usr/local/bin/ --strip-components=1

# Ensure executable execution permissions
sudo chmod +x /usr/local/bin/delta

# Remove temporary archive
rm -f /tmp/delta.tar.gz

# Verify installation
delta --version

Install via Linux Distribution Repositories

Most modern Linux package managers feature git-delta natively:

# On Debian or Ubuntu (22.04+):
sudo apt update && sudo apt install -y git-delta

# On Arch Linux:
sudo pacman -S git-delta

# On Alpine Linux:
apk add git-delta

# On systems with Homebrew:
brew install git-delta

Configure Git to Use Delta as Default Pager

Once installed, configure Git to use delta automatically for diffs and logs:

# Configure Git pager settings
git config --global core.pager "delta"
git config --global interactive.diffFilter "delta --color-only"
git config --global delta.navigate true
git config --global delta.light false

# Verify by diffing any git repository commit
git diff HEAD~1

Get the best tech tips delivered straight to your inbox.

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