Skip to content
pkgseek
All tools

bat

Viewer

A `cat` clone with syntax highlighting, Git integration, and automatic paging.

Aliases: bat · batcat

Installation by platform

Package and binary names are factual values and are never translated.

Package verification report

Debian

VerifiedGotcha
package
bat
binary
batcat
repository
main
sudo apt install bat

Install the `bat` package, but the binary is batcat, NOT bat. The name `bat` was already taken by another Debian package. Alias it: `alias bat=batcat`, or symlink ~/.local/bin/bat -> $(which batcat).

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
trixie/main0.25.0-2+b2amd64/usr/bin/batcat

Verified 2026-07-02source

Ubuntu

Repository not indexedGotcha
package
bat
binary
batcat
repository
universe
sudo apt install bat

Same as Debian: package bat, binary batcat. Inherits the renamed binary.

Verified 2026-07-02source

Arch

Verified
package
bat
binary
bat
repository
extra
sudo pacman -S bat

Package and binary are both bat.

Verified 2026-07-02source

Fedora

Verified
package
bat
binary
bat
repository
fedora
sudo dnf install bat

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
42/updates0.26.1-1.fc42x86_64/usr/bin/bat
43/updates0.26.1-4.fc43x86_64/usr/bin/bat
44/updates0.26.1-4.fc44x86_64/usr/bin/bat

Verified 2026-07-02source

Alpine

Verified
package
bat
binary
bat
repository
community
sudo apk add bat

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
3.22/community0.25.0-r4x86_64/usr/bin/bat
3.23/community0.26.1-r0x86_64/usr/bin/bat
3.24/community0.26.1-r0x86_64/usr/bin/bat
edge/community0.26.1-r0x86_64/usr/bin/bat

Verified 2026-07-02source

openSUSE

Verified
package
bat
binary
bat
repository
oss
sudo zypper install bat

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
15.6/oss0.23.0-bp156.1.11aarch64/usr/bin/bat
15.6/oss0.23.0-bp156.1.11ppc64le/usr/bin/bat
15.6/oss0.23.0-bp156.1.11s390x/usr/bin/bat
15.6/oss0.23.0-bp156.1.11x86_64/usr/bin/bat
16.0/oss0.24.0-bp160.1.1aarch64/usr/bin/bat
16.0/oss0.24.0-bp160.1.1ppc64le/usr/bin/bat
16.0/oss0.24.0-bp160.1.1s390x/usr/bin/bat
16.0/oss0.24.0-bp160.1.1x86_64/usr/bin/bat
tumbleweed/oss0.26.1-2.2x86_64/usr/bin/bat

Verified 2026-07-02source

Homebrew

Platform outside package index
package
bat
binary
bat
repository
homebrew/core
brew install bat

Verified 2026-07-02source

Commands and flags

Flags are imported with their command-level source and verification date.

bat

bat [OPTIONS] [FILE]...

Verified 2026-07-01source

FlagDescriptionSince
--language, -l <lang>Set the language for syntax highlighting explicitly.—
--number, -nShow line numbers only (no other decorations).—
--plain, -pPlain output: no decorations, no paging. Repeat (-pp) to also disable paging.—
--style <components>Comma-separated decorations: full, auto, plain, changes, header, grid, numbers, snip.—
--theme <theme>Set the syntax-highlighting theme. `bat --list-themes` shows options.—
--paging <when>Control paging: auto, never, always.—
--diff, -dOnly show lines that have Git changes.—
--show-all, -AShow non-printable characters like space, tab, and newline.—
--wrap <mode>Text wrapping: auto, never, character.—
--list-themesDisplay a list of supported highlighting themes.—

Configuration

ConfigurationLocationDescriptionDefault
--theme~/.config/bat/configDefault theme, one flag per line. Run `bat --generate-config-file` to create the file.Monokai Extended
BAT_THEMEenvironment variableOverrides the configured theme for a single shell session.—