# 使用 Cargo 安装 bat

查看 bat 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install cargo:bat
```

其他安装命令:

### 便携式和语言管理器

- Cargo (100%):

```sh
cargo install bat
```

  证据: local crates.io package metadata

## 软件包事实

- **软件包键:** cargo:bat
- **软件包管理器:** Cargo
- **软件包管理器页面:** <https://crates.io/crates/bat>
- **版本:** 0.26.1
- **来源摘要:** A cat(1) clone with wings.
- **主页:** <https://github.com/sharkdp/bat>
- **仓库:** <https://github.com/sharkdp/bat>
- **许可证:** MIT OR Apache-2.0
- **源码归档:** <https://static.crates.io/crates/bat/bat-0.26.1.crate>
- **发布时间:** 2025-12-02 20:52:06.448773+00
- **最后更新:** 2025-12-02 20:52:06.448773+00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bat (二进制): Declared by crates.io version metadata.

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.26.1

## 安全说明

没有找到 bat 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** crates.io database dump
- **Crate ID:** 61,835
- **Crate Size:** 2,128,650
- **Edition:** 2021
- **Executable Intent:** Intent: public_cli, Signals: binary name matches crate name
- **Has Lib:** yes
- **Num Versions:** 42
- **Recent Download Window Days:** 90
- **Rust Version:** 1.87
- **Version ID:** 1,855,667

## 其他软件包管理器记录

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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'


## 相关链接

- [bat](https://pkg.so/zh-hans/pkg/brew/bat/) - Same normalized package name exists in another local package ecosystem.

## 来源

- crates.io package index
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
