# 使用 Homebrew, MacPorts, Nix 安装 cbmbasic

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

## 安装

```sh
sudo av install brew:cbmbasic
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cbmbasic
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cbmbasic
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cbmbasic
```

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

## 软件包事实

- **软件包键:** brew:cbmbasic
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cbmbasic>
- **版本:** 1.0
- **来源摘要:** Commodore BASIC V2 as a scripting language
- **主页:** <https://github.com/mist64/cbmbasic>
- **仓库:** <https://github.com/mist64/cbmbasic>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://downloads.sourceforge.net/project/cbmbasic/cbmbasic/1.0/cbmbasic-1.0.tgz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cbmbasic (cli)
- cbmbasic (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.0
- 本地数据: OK
- 上游仓库: https://github.com/mist64/cbmbasic
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

cbmbasic is a portable native implementation of Commodore BASIC V2, presented as a command-line interpreter and Unix scripting language.

### 项目历史

The official README describes cbmbasic as a 100% compatible version of Commodore's Microsoft BASIC 6502 as found on the Commodore 64, but implemented natively rather than by emulating 6502 code. The public GitHub repository was created in 2014.

### 采用历史

The README documents testing on Mac OS X, Debian Linux, and Windows NT-era Visual Studio toolchains, while supplied package facts show packaging in Homebrew, MacPorts, and Nix. Its audience is retro-computing users who want Commodore BASIC available as a normal host executable.

### 使用方式

Users can run cbmbasic interactively, pass an ASCII BASIC file on the command line, or add a hashbang line to run BASIC programs as Unix scripts. The README also documents a plugin-style extension path for additional statements and functions.

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

cbmbasic is a small package-manager gem: installing it drops a historically recognizable 8-bit BASIC dialect into a modern shell, with no emulator stack. It matters less as infrastructure and more as a portable preservation and scripting curiosity.

### 时间线

- 2014: Public GitHub repository created.
- 2026: Repository metadata showed recent activity and an unarchived project.

### Related projects

- The README ties cbmbasic directly to Commodore BASIC V2, Microsoft BASIC 6502, the Commodore 64, and optional ANSI-style extensions documented in the repository.

### 来源

- <https://api.github.com/repos/mist64/cbmbasic>
- <https://github.com/mist64/cbmbasic>
- <https://github.com/mist64/cbmbasic#readme>
- <https://github.com/mist64/cbmbasic/blob/master/ANSI_Extension.md>
- <https://formulae.brew.sh/api/formula/cbmbasic.json>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cbmbasic
- **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 - cbmbasic: normalized package name match | nixpkgs package indexes: pkgs/by-name/cb/cbmbasic/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - cbmbasic: normalized package name match | MacPorts ports tree: lang/cbmbasic/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [jimtcl](https://pkg.so/zh-hans/brew/jimtcl/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, scripting-language.
- [bas55](https://pkg.so/zh-hans/brew/bas55/) - Shares pkgdb curated category or tags: basic, cli, interpreter, language-runtime.
- [newlisp](https://pkg.so/zh-hans/brew/newlisp/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, scripting-language.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime.
- [python@3.13](https://pkg.so/zh-hans/brew/python-3-13/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime.
- [python@3.12](https://pkg.so/zh-hans/brew/python-3-12/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime.
- [ruby](https://pkg.so/zh-hans/brew/ruby/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime.
- [python@3.11](https://pkg.so/zh-hans/brew/python-3-11/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime.
- [chibi-scheme](https://pkg.so/zh-hans/brew/chibi-scheme/) - Local package facts share a topical domain. Shared terms: as, cli, interpreter, language, language-runtime.
- [umka-lang](https://pkg.so/zh-hans/brew/umka-lang/) - Local package facts share a topical domain. Shared terms: cli, language, language-runtime, runtime, scripting.
- [yaegi](https://pkg.so/zh-hans/brew/yaegi/) - Local package facts share a topical domain. Shared terms: cli, interpreter, language, language-runtime, runtime.

## Combined YAML source

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