# 使用 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
- **版本:** 1.2.6
- **来源摘要:** Colorizing cat command with syntax highlighting
- **主页:** <https://github.com/toshimaru/nyan>
- **仓库:** <https://github.com/toshimaru/nyan>
- **最后更新:** 2026-07-26T19:43:17+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- nyan (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
