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

Developers, DevOps engineers, and technical documentation writers working in command-line environments frequently utilize glow, a modern terminal-based Markdown reader developed by Charm. It renders Markdown files, README documents, and changelogs with colorized typography, syntax highlighting for code blocks, and formatted tables directly inside shell viewports. In fresh Linux server images or minimal cloud container environments (Ubuntu Server, Debian Minimal, Alpine Linux), typing the command triggers: bash: glow: command not found because minimal distros do not bundle third-party Go utilities in base package groups.

Install glow via Official Charm Package Repository

The maintainers provide official APT and RPM repositories for Debian, Ubuntu, and Fedora distributions:

Ubuntu and Debian

# Add Charm official GPG key and APT repository
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg
echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list
sudo apt-get update
sudo apt-get install -y glow
glow --version

Fedora and RHEL / CentOS

echo '[charm]
name=Charm
baseurl=https://repo.charm.sh/yum/
enabled=1
gpgcheck=1
gpgkey=https://repo.charm.sh/yum/gpg.key' | sudo tee /etc/yum.repos.d/charm.repo
sudo dnf install -y glow

Arch Linux

sudo pacman -S glow

Alpine Linux

# Enable community repository in /etc/apk/repositories
sudo apk update
sudo apk add glow

Verify PATH for Standalone Binary Deployments

If you installed glow via go install github.com/charmbracelet/glow@latest, ensure your user Go bin directory is exported in your environment:

  1. Open ~/.bashrc:
    nano ~/.bashrc
  2. Add the binary export string:
    export PATH=$PATH:$(go env GOPATH)/bin
  3. Save and reload with source ~/.bashrc. Type glow README.md to view formatted markdown in your terminal.

Get the best tech tips delivered straight to your inbox.

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