# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, zypper 安装 cbonsai

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

## 安装

```sh
sudo av install brew:cbonsai
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cbonsai
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cbonsai
```

  证据: MacPorts ports tree: games/cbonsai/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add cbonsai
```

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

- Debian apt (92%):

```sh
sudo apt install cbonsai
```

  证据: Debian stable package indexes: cbonsai from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install cbonsai
```

  证据: Fedora Rawhide package metadata: cbonsai 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#cbonsai
```

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

- zypper (92%):

```sh
sudo zypper install cbonsai
```

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

## 软件包事实

- **软件包键:** brew:cbonsai
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cbonsai>
- **版本:** 1.4.2
- **来源摘要:** Console Bonsai is a bonsai tree generator, written in C using ncurses
- **主页:** <https://gitlab.com/jallbrit/cbonsai>
- **上游文档:** <https://gitlab.com/jallbrit/cbonsai>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://gitlab.com/jallbrit/cbonsai/-/archive/v1.4.2/cbonsai-v1.4.2.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cbonsai (cli)
- cbonsai (别名)

## 依赖

- ncurses

## 构建依赖

- pkgconf
- scdoc

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.4.2
- 本地数据: OK
- 上游仓库: https://gitlab.com/jallbrit/cbonsai
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

cbonsai is a small terminal-art program: a C/ncurses bonsai tree generator with static and live growth modes.

### 项目历史

The official README describes cbonsai as a newer C version of the author's earlier bonsai.sh project, which itself ported a JavaScript bonsai tree generator.

### 采用历史

The upstream README points users to a Repology packaging chart and separately calls out Homebrew, MacPorts, Fedora COPR, and Snap availability. The supplied package facts also show distro/package-manager entries for apk, Debian, Fedora, Nix, Ubuntu, zypper, Homebrew, and MacPorts.

### 使用方式

cbonsai is used as a terminal visual toy, screensaver, shell-startup flourish, or message display. Its manual documents options for live mode, infinite mode, screensaver mode, seed selection, colors, leaves, and saving/loading progress from ~/.cache/cbonsai.

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

It is the sort of tiny C/ncurses program package managers like carrying because it is self-contained, portable across Unix-like systems, and useful for testing terminal colors and ncurses behavior while also being a fun demo package.

### Related projects

- bonsai.sh and the JavaScript bonsai generator named by the upstream README.

### 来源

- <https://gitlab.com/jallbrit/cbonsai>
- <https://gitlab.com/jallbrit/cbonsai#readme>
- <https://gitlab.com/jallbrit/cbonsai/-/blob/master/cbonsai.scd>
- <https://formulae.brew.sh/api/formula/cbonsai.json>


## 安全说明

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:** cbonsai
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - cbonsai - 1.3.1-1: normalized package name match | Debian stable package indexes: cbonsai from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | terminal-based bonsai tree generator | https://gitlab.com/jallbrit/cbonsai
- Nix - cbonsai: normalized package name match | nixpkgs package indexes: pkgs/by-name/cb/cbonsai/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cbonsai - 1.3.1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: cbonsai from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | terminal-based bonsai tree generator | https://gitlab.com/jallbrit/cbonsai
- apk - cbonsai - 1.4.2-r0: normalized package name match | Alpine Linux edge package indexes: cbonsai from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Grow bonsai trees in your terminal | https://gitlab.com/jallbrit/cbonsai
- apk - cbonsai-bash-completion - 1.4.2-r0: normalized package name match | Alpine Linux edge package indexes: cbonsai-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for cbonsai | https://gitlab.com/jallbrit/cbonsai
- apk - cbonsai-doc - 1.4.2-r0: normalized package name match | Alpine Linux edge package indexes: cbonsai-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Grow bonsai trees in your terminal (documentation) | https://gitlab.com/jallbrit/cbonsai
- dnf - cbonsai - 1.3.1-12.fc45: normalized package name match | Fedora Rawhide package metadata: cbonsai from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Grow bonsai trees in your terminal | https://gitlab.com/jallbrit/cbonsai
- zypper - cbonsai - 1.4.2-1.5: normalized package name match | openSUSE Tumbleweed package metadata: cbonsai from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A bonsai tree generator for your terminal | https://gitlab.com/jallbrit/cbonsai
- zypper - cbonsai-bash-completion - 1.4.2-1.5: normalized package name match | openSUSE Tumbleweed package metadata: cbonsai-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for cbonsai | https://gitlab.com/jallbrit/cbonsai
- MacPorts - cbonsai: normalized package name match | MacPorts ports tree: games/cbonsai/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [ncurses](https://pkg.so/zh-hans/brew/ncurses/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [scdoc](https://pkg.so/zh-hans/brew/scdoc/) - Build dependency declared by Homebrew.
- [cmatrix](https://pkg.so/zh-hans/brew/cmatrix/) - Shares pkgdb curated category or tags: cli, ncurses, terminal, toys.
- [cowsay](https://pkg.so/zh-hans/brew/cowsay/) - Shares pkgdb curated category or tags: cli, terminal, toys.
- [sl](https://pkg.so/zh-hans/brew/sl/) - Shares pkgdb curated category or tags: cli, terminal, toys.
- [fortune](https://pkg.so/zh-hans/brew/fortune/) - Shares pkgdb curated category or tags: cli, terminal, toys.
- [asciiquarium](https://pkg.so/zh-hans/brew/asciiquarium/) - Shares pkgdb curated category or tags: cli, terminal, toys.
- [ponysay](https://pkg.so/zh-hans/brew/ponysay/) - Shares pkgdb curated category or tags: cli, terminal, toys.
- [kotofetch](https://pkg.so/zh-hans/brew/kotofetch/) - Shares pkgdb curated category or tags: cli, terminal, toys.
- [fakesteak](https://pkg.so/zh-hans/brew/fakesteak/) - Shares pkgdb curated category or tags: cli, terminal, toys.

## Combined YAML source

View the package source record on GitHub. [combined/cbonsai.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cbonsai.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
