# 使用 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
- **版本:** 1.0
- **来源摘要:** Commodore BASIC V2 as a scripting language
- **主页:** <https://github.com/mist64/cbmbasic>
- **仓库:** <https://github.com/mist64/cbmbasic>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cbmbasic (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.0
## 项目历史与用法

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

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

- 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


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