# 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

```sh
sudo av install brew:bat
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install bat
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install bat
```

  Evidenz: MacPorts ports tree: textproc/bat/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add bat
```

  Evidenz: Alpine Linux edge package indexes: bat from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install bat
```

  Evidenz: Debian stable package indexes: bat from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install bat
```

  Evidenz: Fedora Rawhide package metadata: bat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#bat
```

  Evidenz: nixpkgs package indexes: pkgs/by-name/ba/bat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S bat
```

  Evidenz: Arch Linux sync databases: bat from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install bat
```

  Evidenz: openSUSE Tumbleweed package metadata: bat from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install Bat
```

  Evidenz: Chocolatey community package catalog: Bat from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','azurestorageemulator'

- Scoop (92%):

```sh
scoop install main/bat
```

  Evidenz: Scoop official bucket manifest trees: bucket/bat.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id sharkdp.bat -e
```

  Evidenz: Windows Package Manager source index: sharkdp.bat from https://cdn.winget.microsoft.com/cache/source.msix

## Paketfakten

- **Paketschlüssel:** brew:bat
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/bat>
- **Version:** 0.26.1
- **Quellzusammenfassung:** Clone of cat(1) with syntax highlighting and Git integration
- **Homepage:** <https://github.com/sharkdp/bat>
- **Repository:** <https://github.com/sharkdp/bat>
- **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
- **Generiert:** 2026-08-04T22:13:35+00:00

## Executables

- bat (cli)
- bat (Alias)

## Abhängigkeiten

- libgit2
- oniguruma

## Build-Abhängigkeiten

- pkgconf
- rust

## Installationsverhalten

- Post-install-Hook: nicht definiert
- Bottle: verfügbar auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version und Aktualität

- Seite generiert: 2026-08-04
- Manager-Version: 0.26.1
- Manager aktualisiert: 2026-06-22
- lokale Daten: OK
- Upstream-Repository: https://github.com/sharkdp/bat
- neueste erkannte Version: v0.26.1 (aktuell)
## 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.

### Quellen

- <https://github.com/sharkdp/bat>
- <https://github.com/sharkdp/bat/releases/tag/v0.1.0>
- <https://github.com/sharkdp/bat/releases/tag/v0.25.0>
- source_facts.package-manager


## Sicherheitshinweise

narrow executable package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- narrow executable package without higher-risk signals


## 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

- Unix: /etc/bat/config
- Windows: C:\ProgramData\bat\config
## Details aus der Quelldatenbank

- **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:** head, stable

## Andere Paketmanager-Einträge

- Debian apt - bat - 0.25.0-2+b2: normalized package name match | Debian stable package indexes: bat from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | cat(1) clone with syntax highlighting and git integration | https://github.com/sharkdp/bat
- Nix - bat: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/bat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - bat - 0.24.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: bat from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | cat(1) clone with syntax highlighting and git integration | https://github.com/sharkdp/bat
- apk - bat - 0.26.1-r0: normalized package name match | Alpine Linux edge package indexes: bat from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | cat(1) clone with wings | https://github.com/sharkdp/bat
- apk - bat-bash-completion - 0.26.1-r0: normalized package name match | Alpine Linux edge package indexes: bat-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for bat | https://github.com/sharkdp/bat
- apk - bat-doc - 0.26.1-r0: normalized package name match | Alpine Linux edge package indexes: bat-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | cat(1) clone with wings (documentation) | https://github.com/sharkdp/bat
- apk - bat-fish-completion - 0.26.1-r0: normalized package name match | Alpine Linux edge package indexes: bat-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for bat | https://github.com/sharkdp/bat
- apk - bat-zsh-completion - 0.26.1-r0: normalized package name match | Alpine Linux edge package indexes: bat-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for bat | https://github.com/sharkdp/bat
- dnf - bat - 0.26.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: bat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Cat(1) clone with wings | https://crates.io/crates/bat
- pacman - bat - 0.26.1-2: normalized package name match | Arch Linux sync databases: bat from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Cat clone with syntax highlighting and git integration | https://github.com/sharkdp/bat
- zypper - bat - 0.26.1-2.1: normalized package name match | openSUSE Tumbleweed package metadata: bat from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A cat(1) clone with syntax highlighting and Git integration | https://github.com/sharkdp/bat
- zypper - bat-bash-completion - 0.26.1-2.1: normalized package name match | openSUSE Tumbleweed package metadata: bat-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash completion for bat | https://github.com/sharkdp/bat
- zypper - bat-fish-completion - 0.26.1-2.1: normalized package name match | openSUSE Tumbleweed package metadata: bat-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish completion for bat | https://github.com/sharkdp/bat
- zypper - bat-zsh-completion - 0.26.1-2.1: normalized package name match | openSUSE Tumbleweed package metadata: bat-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Zsh completion for bat | https://github.com/sharkdp/bat
- MacPorts - bat: normalized package name match | MacPorts ports tree: textproc/bat/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - Bat: normalized package name match | Chocolatey community package catalog: Bat from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','azurestorageemulator'


## Verwandte Links

- [Source-control packages](https://pkg.so/de/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/de/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/de/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/de/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [oniguruma](https://pkg.so/de/brew/oniguruma/) - Runtime dependency declared by Homebrew.
- [libgit2](https://pkg.so/de/brew/libgit2/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/de/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/de/brew/rust/) - Build dependency declared by Homebrew.
- [nb](https://pkg.so/de/brew/nb/) - Popular package that depends on this formula.
- [git-delta](https://pkg.so/de/brew/git-delta/) - Shares pkgdb curated category or tags: cli, developer-tools, git, pager, syntax-highlighting.
- [diff-so-fancy](https://pkg.so/de/brew/diff-so-fancy/) - Shares pkgdb curated category or tags: cli, developer-tools, git, pager.
- [tailspin](https://pkg.so/de/brew/tailspin/) - Shares pkgdb curated category or tags: cli, developer-tools, pager, syntax-highlighting.
- [bat-extras](https://pkg.so/de/brew/bat-extras/) - Shares pkgdb curated category or tags: cli, cli-utilities, developer-tools.
- [diffnav](https://pkg.so/de/brew/diffnav/) - Shares pkgdb curated category or tags: cli, developer-tools, git, pager.
- [gat](https://pkg.so/de/brew/gat/) - Shares pkgdb curated category or tags: cat, cli, developer-tools, syntax-highlighting.
- [ccat](https://pkg.so/de/brew/ccat/) - Shares pkgdb curated category or tags: cat, cli, developer-tools, syntax-highlighting.
- [nyan](https://pkg.so/de/brew/nyan/) - Shares pkgdb curated category or tags: cat, cli, developer-tools, syntax-highlighting.
- [codevis](https://pkg.so/de/brew/codevis/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, highlighting, oniguruma.
- [bat](https://pkg.so/de/cargo/bat/) - Same normalized package name exists in another local package ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/bat.yml](https://github.com/mxcl/pkgdb/blob/main/combined/bat.yml)


## Quellen

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