# bat-extras を Homebrew, apk, MacPorts, Nix, pacman, zypper でインストール

bat-extras のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install bat-extras
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install bat-extras
```

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

### Linux

- apk (92%):

```sh
sudo apk add bat-extras
```

  証拠: Alpine Linux edge package indexes: bat-extras from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

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

  証拠: nixpkgs package indexes: bat-extras from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

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

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

- zypper (92%):

```sh
sudo zypper install bat-extras
```

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

## パッケージ情報

- **パッケージキー:** brew:bat-extras
- **パッケージマネージャ:** Homebrew
- **バージョン:** 2024.08.24
- **ソース概要:** Bash scripts that integrate bat with various command-line tools
- **ホームページ:** <https://github.com/eth-p/bat-extras>
- **リポジトリ:** <https://github.com/eth-p/bat-extras>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- bat-modules (エイリアス)
- batdiff (エイリアス)
- batgrep (エイリアス)
- batman (エイリアス)
- batpipe (エイリアス)
- batwatch (エイリアス)
- prettybat (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 2024.08.24
## プロジェクトの歴史と使われ方

bat-extras is a small companion suite for bat: shell scripts that wire bat into common terminal workflows such as ripgrep search, man-page reading, git diffs, file watching, less preprocessing, and pretty-printing.

### プロジェクトの歴史

The project grew around bat rather than replacing it. Its README presents bat-extras as Bash scripts that integrate bat with other command-line tools, and lists separate utilities such as batgrep, batman, batpipe, batwatch, batdiff, and prettybat.

The release packaging is intentionally convenience-oriented. The 2024-08-24 GitHub release says it bundles the latest versions of the individual scripts as of that commit and still recommends the README installation instructions for the most up-to-date versions.

### 採用の歴史

bat-extras is packaged as a single Homebrew formula and is also listed in the input metadata for apk, MacPorts, Nix, pacman, and zypper. The upstream README documents Homebrew and MacPorts installation and also supports installing individual scripts from the maintainer's tap.

The GitHub repository has a modest but real terminal-tool audience, with about 1.6k stars shown on the project page at enrichment time.

### 使われ方

Users install the bundle when they already use bat and want it to become the pager or renderer behind adjacent tools: batgrep highlights ripgrep results, batman formats man pages through bat, batdiff displays git-oriented diffs, and batwatch reprints changing files with bat.

The scripts are intentionally glue code. They depend on common CLI tools such as ripgrep, delta, entr, fzf, git, and bat itself where a particular script needs them.

### パッケージ好きにとっての重要性

bat-extras is package-nerd catnip because it shows what happens after a modern Unix replacement becomes popular: a small ecosystem of shell adapters appears so the replacement can sit inside search, diff, pager, and documentation flows.

It is also a good packaging edge case because distributions may rename bat itself; bat-extras has build options for alternate executable names so the same scripts can work across package-manager naming quirks.

### タイムライン

- 2024: Release v2024.08.24 bundles bat-modules, batdiff, batgrep, batman, batpipe, batwatch, and prettybat from the same commit.
- 2026: Input package metadata lists bat-extras across Homebrew, apk, MacPorts, Nix, pacman, and zypper.

### Related projects

- bat is the required center of the suite.
- ripgrep is used by batgrep, delta can enhance batdiff, and common terminal tools such as man, less, git, fzf, and entr define the workflows bat-extras targets.

### ソース

- <https://github.com/eth-p/bat-extras>
- <https://github.com/eth-p/bat-extras/releases/tag/v2024.08.24>
- source_facts.package-manager


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- Nix - bat-extras: normalized package name match | nixpkgs package indexes: bat-extras from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- apk - bat-extras - 2024.08.24-r0: normalized package name match | Alpine Linux edge package indexes: bat-extras from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash scripts that integrate bat with various command line tools | https://github.com/eth-p/bat-extras
- apk - bat-extras-batdiff - 2024.08.24-r0: normalized package name match | Alpine Linux edge package indexes: bat-extras-batdiff from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash scripts that integrate bat with various command line tools (batdiff) | https://github.com/eth-p/bat-extras
- apk - bat-extras-batgrep - 2024.08.24-r0: normalized package name match | Alpine Linux edge package indexes: bat-extras-batgrep from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash scripts that integrate bat with various command line tools (batgrep) | https://github.com/eth-p/bat-extras
- apk - bat-extras-batman - 2024.08.24-r0: normalized package name match | Alpine Linux edge package indexes: bat-extras-batman from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash scripts that integrate bat with various command line tools (batman) | https://github.com/eth-p/bat-extras
- apk - bat-extras-batpipe - 2024.08.24-r0: normalized package name match | Alpine Linux edge package indexes: bat-extras-batpipe from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash scripts that integrate bat with various command line tools (batpipe) | https://github.com/eth-p/bat-extras
- apk - bat-extras-batwatch - 2024.08.24-r0: normalized package name match | Alpine Linux edge package indexes: bat-extras-batwatch from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash scripts that integrate bat with various command line tools (batwatch) | https://github.com/eth-p/bat-extras
- apk - bat-extras-doc - 2024.08.24-r0: normalized package name match | Alpine Linux edge package indexes: bat-extras-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash scripts that integrate bat with various command line tools (documentation) | https://github.com/eth-p/bat-extras
- apk - bat-extras-prettybat - 2024.08.24-r0: normalized package name match | Alpine Linux edge package indexes: bat-extras-prettybat from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash scripts that integrate bat with various command line tools (prettybat) | https://github.com/eth-p/bat-extras
- pacman - bat-extras - 2024.08.24-1: normalized package name match | Arch Linux sync databases: bat-extras from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Bash scripts that integrate bat with various command line tools | https://github.com/eth-p/bat-extras
- zypper - bat-extras - 2024.08.24-3.3: normalized package name match | openSUSE Tumbleweed package metadata: bat-extras from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Extra scripts for bat | https://github.com/eth-p/bat-extras
- MacPorts - bat-extras: normalized package name match | MacPorts ports tree: textproc/bat-extras/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
