# 使用 Homebrew, Nix 安装 nyan

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

## 安装

```sh
sudo av install brew:nyan
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nyan
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#nyan
```

  证据: nixpkgs package indexes: pkgs/by-name/ny/nyan/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:nyan
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/nyan>
- **版本:** 1.2.6
- **来源摘要:** Colorizing cat command with syntax highlighting
- **主页:** <https://github.com/toshimaru/nyan>
- **仓库:** <https://github.com/toshimaru/nyan>
- **许可证:** MIT
- **源码归档:** <https://github.com/toshimaru/nyan/archive/refs/tags/v1.2.6.tar.gz>
- **最后更新:** 2026-07-26T19:43:17+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- nyan (cli)
- nyan (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.2.6
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/toshimaru/nyan
- 检测到的最新版本: v1.2.6 (当前)
## 项目历史与用法

nyan is a Go command-line replacement for the narrow use case of running cat on source files while keeping terminal syntax highlighting. Its upstream README describes it as a colorizing cat command, with language selection, line numbers, and selectable themes such as monokai, dracula, pygments, and solarized variants.

### 项目历史

The GitHub repository was created on 2019-07-08 by toshimaru. The README explicitly ties the name to Nyan Cat, but the tool's implementation niche is practical rather than novelty: plain file output with optional syntax coloring instead of a pager-first workflow.

### 采用历史

nyan started as a small Homebrew-tap style developer utility and the README notes that version 1.2.0 was merged into homebrew-core. The Homebrew formula API reported stable version 1.2.6 and 610 installs over the 365-day analytics window queried on 2026-07-01, which fits a modest but real CLI-tool audience.

### 使用方式

Package nerds use nyan where bat is more UI than they want: quick terminal inspection of files with colors, sometimes with --language to force highlighting, --theme to match a terminal theme, --number for line numbers, and --list-themes to preview palettes.

### 为什么软件包爱好者会关心

nyan sits in the tiny ecosystem of colorizing cat clones such as ccat and bat. Its significance is mostly packaging shape: a small Go single-command utility that graduated into homebrew-core because it cleanly solves one terminal habit.

### 时间线

- 2019-07-08: GitHub repository created.
- v1.2.0: upstream README says nyan was merged into homebrew-core.
- 2026-07-01: Homebrew formula API reported stable version 1.2.6.

### Related projects

- bat
- ccat
- Nyan Cat

### 来源

- <https://api.github.com/repos/toshimaru/nyan>
- <https://formulae.brew.sh/api/formula/nyan.json>
- <https://github.com/toshimaru/nyan>
- <https://raw.githubusercontent.com/toshimaru/nyan/master/README.md>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** nyan
- **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

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

- Nix - nyan: normalized package name match | nixpkgs package indexes: pkgs/by-name/ny/nyan/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [peco](https://pkg.so/zh-hans/brew/peco/) - Shares pkgdb curated category or tags: cli, developer-tools, go, terminal.
- [rich-cli](https://pkg.so/zh-hans/brew/rich-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, syntax-highlighting, terminal.
- [gat](https://pkg.so/zh-hans/brew/gat/) - Shares pkgdb curated category or tags: cat, cli, developer-tools, go, syntax-highlighting.
- [ccat](https://pkg.so/zh-hans/brew/ccat/) - Shares pkgdb curated category or tags: cat, cli, developer-tools, go, syntax-highlighting.
- [micro](https://pkg.so/zh-hans/brew/micro/) - Shares pkgdb curated category or tags: cli, developer-tools, go, syntax-highlighting, terminal.
- [figlet](https://pkg.so/zh-hans/brew/figlet/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.
- [regclient](https://pkg.so/zh-hans/brew/regclient/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [ddgr](https://pkg.so/zh-hans/brew/ddgr/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.

## Combined YAML source

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


## 来源

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