Installing Glow
By the end of this chapter Glow is on your machine and has passed the one check every install must pass: it states its version.
The route the lab used: the release file
Glow is distributed as a single
self-contained binary — one file, no
dependencies to assemble. The lab
downloaded the official release
tarball for Linux on x86-64 from the
project's GitHub releases
(github.com/charmbracelet/glow/releases),
named for version 3.0.0 in the
project's usual pattern
(glow_3.0.0_Linux_x86_64.tar.gz),
unpacked it, and ran the glow binary
inside. Nothing was installed
system-wide; the binary ran from the
lab folder, which is a perfectly good
way to try a tool before adopting it.
The same page carries builds for
macOS (including Apple silicon) and
Windows, and for ARM Linux machines
such as a Raspberry Pi.
Whichever route you take, the check is the same:
$ glow --version
glow version 3.0.0 (add5e7a)
The word after "version" is the
release; the word in brackets is the
exact build. If the command answers
"not found", the binary is not on your
PATH yet — that is an install
problem, not a Glow problem, and no
later chapter will help until it
answers (transcript
glow-lab/transcripts/t00-version.txt).
The package routes (documented only)
The project's README lists package
routes for the common systems —
Homebrew on macOS and Linux, the
package managers of the major Linux
families (including a Charm-hosted
repository for apt, dnf and friends),
and go install for machines with a
Go toolchain. The lab did not run
these: it ran the release binary, and
this guide does not present a route it
did not run as tested. The routes are
kept current in the project README,
which is where to read them — Glow
itself can fetch and render that
README for you once it is installed
(chapter 10 shows how).
Two honest notes about packages. A
distribution package may lag the
project's releases, sometimes by a
lot; glow --version tells you what
you actually got. And a packaged
binary and the release binary are the
same program — everything after this
chapter behaves identically either
way.
What Glow leaves behind
One thing appears the first time Glow
runs: it writes a small configuration
file, glow.yml, in your user
configuration folder (on Linux,
~/.config/glow/glow.yml, or under
$XDG_CONFIG_HOME when that variable
is set — the lab watched it appear in
a scratch config folder it controlled).
Chapter 12 opens that file. Nothing
else is written: reading a document
changes nothing on disk, and fetching
one (chapter 10) keeps no copy.
Check: run glow --version and see a
version line. If you can, you have
this chapter and the tool.