Installing Glow
Glow is available on multiple platforms and can be installed using your preferred package manager.Choose your installation method
Select the installation method that works best for your operating system:
Install with Go (all platforms)
If you have Go installed, you can install Glow directly:
This method requires Go to be installed on your system. The
glow binary will be installed to your $GOPATH/bin directory.Build from source
To build Glow from source, you’ll need Go 1.21 or later:After building, you can move the
Requirements: Go 1.21+ is required for building from source.
glow binary to a directory in your $PATH:Download Pre-built Binaries
You can also download pre-built binaries from the GitHub releases page. Binaries are available for:- macOS (Intel and Apple Silicon)
- Linux (x64 and ARM)
- Windows (x64 and ARM)
- FreeBSD and OpenBSD
.debpackages for Debian/Ubuntu.rpmpackages for Fedora/RHEL.apkpackages for Alpine Linux- Standalone binaries for all platforms
Next Steps
Now that you have Glow installed, try it out:System Requirements
- Terminal: Any modern terminal emulator with color support
- Go version: 1.21+ (only required for building from source)
- Platform: macOS, Linux, Windows, FreeBSD, OpenBSD, or Termux on Android
Troubleshooting
Command not found after installation
Command not found after installation
If you installed Glow with Add this line to your shell configuration file (
go install, make sure your $GOPATH/bin directory is in your $PATH:.bashrc, .zshrc, etc.) to make it permanent.Permission denied when building from source
Permission denied when building from source
When moving the binary to
/usr/local/bin/, you may need to use sudo:GPG key errors on Debian/Ubuntu
GPG key errors on Debian/Ubuntu
If you encounter GPG key errors, ensure you have the Then retry the installation steps.
gpg command installed: