macOS
brew install batlocal Homebrew formula metadata
sudo port install batMacPorts ports tree · textproc/bat/Portfile · Quelle: api.github.com
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für bat in AI-Agent-Workflows.
Installation
brew install batlocal Homebrew formula metadata
sudo port install batMacPorts ports tree · textproc/bat/Portfile · Quelle: api.github.com
sudo apk add batAlpine Linux edge package indexes · bat · Quelle: dl-cdn.alpinelinux.org
sudo apt install batDebian stable package indexes · bat · Quelle: deb.debian.org
sudo dnf install batFedora Rawhide package metadata · bat · Quelle: dl.fedoraproject.org
nix profile install nixpkgs#batnixpkgs package indexes · pkgs/by-name/ba/bat/package.nix · Quelle: api.github.com
sudo pacman -S batArch Linux sync databases · bat · Quelle: geo.mirror.pkgbuild.com
sudo zypper install batopenSUSE Tumbleweed package metadata · bat · Quelle: download.opensuse.org
choco install BatChocolatey community package catalog · Bat · Quelle: community.chocolatey.org
scoop install main/batScoop official bucket manifest trees · bucket/bat.json · Quelle: api.github.com
winget install --id sharkdp.bat -eWindows Package Manager source index · sharkdp.bat · Quelle: cdn.winget.microsoft.com
Überblick
Clone of cat(1) with syntax highlighting and Git integration
Verlauf
bat is a Rust command-line file viewer that deliberately starts from cat(1) and adds syntax highlighting, Git modification markers, automatic paging, line numbers, and integration hooks for other terminal tools.
bat's first GitHub release, v0.1.0, was published on April 22, 2018 as an initial release. The project describes itself as a cat(1) clone with syntax highlighting and Git integration, and its README states goals of advanced highlighting, Git integration, POSIX-cat replacement behavior, and a friendlier command-line interface.
The tool has stayed in the familiar Unix-filter shape rather than becoming an editor. Its README documents both pretty terminal output and fallback behavior for non-interactive output, where bat acts as a drop-in cat-style concatenator.
By the v0.25.0 release, bat was still adding practical terminal features such as squeeze-blank support, ANSI stripping, shell completions, theme behavior, and broader syntax handling, showing a mature utility polishing edge cases rather than changing identity.
bat became one of the canonical modern Rust CLI replacements, helped by packaging across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, Nix, MacPorts, Chocolatey, Scoop, winget, and other systems listed in the input metadata and upstream README.
The README notes that Ubuntu has carried bat since 20.04 and Debian since Bullseye, with older Debian-family releases installing the executable as batcat because of a package-name clash. That rename became part of bat's package-manager lore.
The repository's GitHub page showed roughly 59.5k stars and 43 releases at enrichment time, making bat far more than a niche wrapper.
bat is commonly used directly as `bat FILE`, as a pager-backed file viewer, as a syntax-colored stdin renderer, as a git-aware diff context viewer, and as a cat replacement when invoked in non-interactive pipelines.
The README documents integrations with fzf previews, find or fd, ripgrep through batgrep, tail -f log viewing, git show, git diff helpers, and clipboard workflows where plain output matters.
bat is significant because it helped define the 2010s/2020s style of polished Rust command-line utilities: familiar Unix nouns, fast single binaries, colorful defaults, Git awareness, good package-manager coverage, and careful degradation in pipes.
For package nerds, it is also a naming and policy specimen. The Debian/Ubuntu batcat period shows how a simple binary name can collide with existing packages, forcing downstream-visible aliases and workarounds even for a very popular tool.
It matters culturally because many later CLI packages pitch themselves in the same grammar: a small classic Unix command, rebuilt with syntax awareness, colors, Git context, and modern ergonomics.
Sicherheitslage
narrow executable package without higher-risk signals.
grün Risiko · niedrig Konfidenz · appliance
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
/etc/bat/configC:\ProgramData\bat\configExecutables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
bat | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://github.com/sharkdp/bat
Installationsmetadaten
| Paketschlüssel | brew:bat |
|---|---|
| Version | 0.26.1 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/bat |
| Homepage | https://github.com/sharkdp/bat |
| Repository | https://github.com/sharkdp/bat |
| Upstream-Dokumentation | https://github.com/sharkdp/bat#readme |
| Lizenz | Apache-2.0 OR MIT |
| Quellarchiv | https://github.com/sharkdp/bat/archive/refs/tags/v0.26.1.tar.gz |
| Zuletzt aktualisiert | 2026-06-22T14:02:51-07:00 |
| Pulse | updated |
| Abhängigkeiten | libgit2, oniguruma |
| Build-Abhängigkeiten | pkgconf, rust |
| Bottle | verfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | bat |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
Source-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
bat 0.25.0-2+b2
cat(1) clone with syntax highlighting and git integration
https://github.com/sharkdp/bat
sudo apt install batbat
nix profile install nixpkgs#batbat 0.24.0-1build1
cat(1) clone with syntax highlighting and git integration
https://github.com/sharkdp/bat
sudo apt install batbat 0.26.1-r0
cat(1) clone with wings
https://github.com/sharkdp/bat
sudo apk add batbat-bash-completion 0.26.1-r0
Bash completions for bat
https://github.com/sharkdp/bat
sudo apk add bat-bash-completionbat-doc 0.26.1-r0
cat(1) clone with wings (documentation)
https://github.com/sharkdp/bat
sudo apk add bat-docbat-fish-completion 0.26.1-r0
Fish completions for bat
https://github.com/sharkdp/bat
sudo apk add bat-fish-completionbat-zsh-completion 0.26.1-r0
Zsh completions for bat
https://github.com/sharkdp/bat
sudo apk add bat-zsh-completionbat 0.26.1-1.fc45
Cat(1) clone with wings
sudo dnf install batbat 0.26.1-2
Cat clone with syntax highlighting and git integration
https://github.com/sharkdp/bat
sudo pacman -S batbat 0.26.1-1.3
A cat(1) clone with syntax highlighting and Git integration
https://github.com/sharkdp/bat
sudo zypper install batbat-bash-completion 0.26.1-1.3
Bash completion for bat
https://github.com/sharkdp/bat
sudo zypper install bat-bash-completionbat-fish-completion 0.26.1-1.3
Fish completion for bat
https://github.com/sharkdp/bat
sudo zypper install bat-fish-completionbat-zsh-completion 0.26.1-1.3
Zsh completion for bat
https://github.com/sharkdp/bat
sudo zypper install bat-zsh-completionbat
sudo port install batBat
choco install BatQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.