Automic VaultAutomic Vault

brew

bat mit Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, chocolatey, scoop, winget installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für bat in AI-Agent-Workflows.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install bat

local Homebrew formula metadata

MacPortsverifiziert · 94%
sudo port install bat

MacPorts ports tree · textproc/bat/Portfile · Quelle: api.github.com

Linux

Alpine Linux apkverifiziert · 92%
sudo apk add bat

Alpine Linux edge package indexes · bat · Quelle: dl-cdn.alpinelinux.org

Debian aptverifiziert · 92%
sudo apt install bat

Debian stable package indexes · bat · Quelle: deb.debian.org

Fedora dnfverifiziert · 92%
sudo dnf install bat

Fedora Rawhide package metadata · bat · Quelle: dl.fedoraproject.org

Nixverifiziert · 92%
nix profile install nixpkgs#bat

nixpkgs package indexes · pkgs/by-name/ba/bat/package.nix · Quelle: api.github.com

Arch Linux pacmanverifiziert · 92%
sudo pacman -S bat

Arch Linux sync databases · bat · Quelle: geo.mirror.pkgbuild.com

openSUSE zypperverifiziert · 92%
sudo zypper install bat

openSUSE Tumbleweed package metadata · bat · Quelle: download.opensuse.org

Windows

Chocolateyverifiziert · 92%
choco install Bat

Chocolatey community package catalog · Bat · Quelle: community.chocolatey.org

Scoopverifiziert · 92%
scoop install main/bat

Scoop official bucket manifest trees · bucket/bat.json · Quelle: api.github.com

Windows Package Managerverifiziert · 92%
winget install --id sharkdp.bat -e

Windows Package Manager source index · sharkdp.bat · Quelle: cdn.winget.microsoft.com

Überblick

Paketzusammenfassung

Clone of cat(1) with syntax highlighting and Git integration

Befehle und Aliase

  • bat

Verlauf

Projektgeschichte und Nutzung

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.

Projektgeschichte

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.

Adoptionsgeschichte

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.

Wie es verwendet wird

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.

Warum Paket-Nerds sich dafür interessieren

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.

Zeitleiste

  • 2018: v0.1.0 initial release published on GitHub.
  • 2020: README documents availability in Ubuntu 20.04 and later.
  • 2021: README documents availability in Debian 11 Bullseye and later.
  • 2025: v0.25.0 release adds polish such as squeeze-blank, ANSI-stripping, shell completions, and theme behavior.
  • 2025: Repository page lists v0.26.1 as the latest release on December 2, 2025.

Related projects

  • bat-extras builds helper scripts around bat for ripgrep, man pages, diffs, and other terminal workflows.
  • delta is called out by bat's README as a related tool for richer git and diff support.
  • fd, fzf, ripgrep, git, less, and tail are common tools bat is documented to integrate with.

Sicherheitslage

Risikostufe: grün

narrow executable package without higher-risk signals.

Risikoklassifikator

grün Risiko · niedrig Konfidenz · appliance

Warum

  • narrow executable package without higher-risk signals

Signale

  • metadata:no-higher-risk-signals

Installationsverhalten

  • In den Formelmetadaten ist kein Homebrew-Post-install-Hook erfasst.
  • Homebrew-Bottle-Metadaten sind für 6 Plattformziele verfügbar.
  • Installiert mit 2 Laufzeitabhängigkeiten.
  • Build-Metadaten listen 2 Build-Abhängigkeiten.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
/etc/bat/config
Windows
C:\ProgramData\bat\config

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
batcliglobales Executable

Aktualität

Version und 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.

Seite generiert2026-07-10
Manager-Version0.26.1
Manager aktualisiert2026-06-22
lokale DatenOK
Upstreamaktuell
neueste erkannte Versionv0.26.1

https://github.com/sharkdp/bat

  • OKEs wurden keine Aktualitätswarnungen generiert.

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:bat
Version0.26.1
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/bat
Homepagehttps://github.com/sharkdp/bat
Repositoryhttps://github.com/sharkdp/bat
Upstream-Dokumentationhttps://github.com/sharkdp/bat#readme
LizenzApache-2.0 OR MIT
Quellarchivhttps://github.com/sharkdp/bat/archive/refs/tags/v0.26.1.tar.gz
Zuletzt aktualisiert2026-06-22T14:02:51-07:00
Pulseupdated
Abhängigkeitenlibgit2, oniguruma
Build-Abhängigkeitenpkgconf, rust
Bottleverfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnicht definiert
Dienstkeiner deklariert

Registry-Fakten

Details aus der Quelldatenbank

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namebat
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

Source-Datenbank-Treffer

Andere Paketmanager-Einträge

Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.

Debian apt95%

bat 0.25.0-2+b2

cat(1) clone with syntax highlighting and git integration

https://github.com/sharkdp/bat

sudo apt install bat
  • Section: utils
  • Architecture: amd64
  • Source Package: rust-bat
  • 3 Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: Bat
Debian stable package indexes · deb.debian.org · Debian stable package indexes: bat from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

bat

nix profile install nixpkgs#bat
  • normalized package name match
  • Abgeglichen nach: Bat
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ba/bat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

bat 0.24.0-1build1

cat(1) clone with syntax highlighting and git integration

https://github.com/sharkdp/bat

sudo apt install bat
  • Section: universe/utils
  • Architecture: amd64
  • Source Package: rust-bat
  • 3 Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: Bat
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: bat from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

bat 0.26.1-r0

cat(1) clone with wings

https://github.com/sharkdp/bat

sudo apk add bat
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: bat
  • 1 Abhängigkeiten
  • 1 stellt bereit
  • normalized package name match
  • Abgeglichen nach: Bat
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: bat from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

bat-bash-completion 0.26.1-r0

Bash completions for bat

https://github.com/sharkdp/bat

sudo apk add bat-bash-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: bat
  • normalized package name match
  • Abgeglichen nach: Bat
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: bat-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

bat-doc 0.26.1-r0

cat(1) clone with wings (documentation)

https://github.com/sharkdp/bat

sudo apk add bat-doc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: bat
  • normalized package name match
  • Abgeglichen nach: Bat
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: bat-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

bat-fish-completion 0.26.1-r0

Fish completions for bat

https://github.com/sharkdp/bat

sudo apk add bat-fish-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: bat
  • normalized package name match
  • Abgeglichen nach: Bat
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: bat-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

bat-zsh-completion 0.26.1-r0

Zsh completions for bat

https://github.com/sharkdp/bat

sudo apk add bat-zsh-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: bat
  • normalized package name match
  • Abgeglichen nach: Bat
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: bat-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

bat 0.26.1-1.fc45

Cat(1) clone with wings

https://crates.io/crates/bat

sudo dnf install bat
  • License: Apache-2.0 AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND CC-BY-SA-3.0 AND LGPL-3.0-or-later AND GPL-2.0-only WITH GCC-exception-2.0 AND MIT AND
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: rust-bat
  • 7 Abhängigkeiten
  • 2 stellt bereit
  • normalized package name match
  • Abgeglichen nach: Bat
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: bat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

bat 0.26.1-2

Cat clone with syntax highlighting and git integration

https://github.com/sharkdp/bat

sudo pacman -S bat
  • License: Apache-2.0 OR MIT
  • Architecture: x86_64
  • 6 Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: Bat
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: bat from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

bat 0.26.1-1.3

A cat(1) clone with syntax highlighting and Git integration

https://github.com/sharkdp/bat

sudo zypper install bat
  • License: Apache-2.0 OR MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: bat
  • 3 Abhängigkeiten
  • 2 stellt bereit
  • normalized package name match
  • Abgeglichen nach: Bat
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: bat from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

bat-bash-completion 0.26.1-1.3

Bash completion for bat

https://github.com/sharkdp/bat

sudo zypper install bat-bash-completion
  • License: Apache-2.0 OR MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: bat
  • 1 Abhängigkeiten
  • 1 stellt bereit
  • normalized package name match
  • Abgeglichen nach: Bat
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: bat-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

bat-fish-completion 0.26.1-1.3

Fish completion for bat

https://github.com/sharkdp/bat

sudo zypper install bat-fish-completion
  • License: Apache-2.0 OR MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: bat
  • 1 Abhängigkeiten
  • 1 stellt bereit
  • normalized package name match
  • Abgeglichen nach: Bat
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: bat-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

bat-zsh-completion 0.26.1-1.3

Zsh completion for bat

https://github.com/sharkdp/bat

sudo zypper install bat-zsh-completion
  • License: Apache-2.0 OR MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: bat
  • 1 Abhängigkeiten
  • 1 stellt bereit
  • normalized package name match
  • Abgeglichen nach: Bat
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: bat-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

bat

sudo port install bat
  • normalized package name match
  • Abgeglichen nach: Bat
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/bat/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

Bat

choco install Bat
  • normalized package name match
  • Abgeglichen nach: Bat
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: Bat from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','backupper-standard'

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Verwendete Quellen

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment