# Install cbmbasic with Homebrew, MacPorts, Nix

Commodore BASIC V2 as a scripting language. Version 1.0 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cbmbasic
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cbmbasic
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:cbmbasic
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cbmbasic>
- **Version:** 1.0
- **Source summary:** Commodore BASIC V2 as a scripting language
- **Homepage:** <https://github.com/mist64/cbmbasic>
- **Repository:** <https://github.com/mist64/cbmbasic>
- **Upstream docs:** <https://github.com/mist64/cbmbasic#readme>
- **License:** BSD-2-Clause
- **Source archive:** <https://downloads.sourceforge.net/project/cbmbasic/cbmbasic/1.0/cbmbasic-1.0.tgz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cbmbasic (cli)
- cbmbasic (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.0
- Local data: ok
- Upstream repository: https://github.com/mist64/cbmbasic
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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>


## Security Notes

generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- generalized runtime or code generation signal

## Source Database Details

- **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

## Other Package-Manager Records

- 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [bas55](https://www.automicvault.com/pkg/brew/bas55/) - Shares av.db curated category or tags: basic, cli, interpreter, language-runtime.
- [bic](https://www.automicvault.com/pkg/brew/bic/) - Shares av.db curated category or tags: basic, cli, interpreter, language-runtime.
- [jimtcl](https://www.automicvault.com/pkg/brew/jimtcl/) - Shares av.db curated category or tags: cli, interpreter, language-runtime, scripting-language.
- [newlisp](https://www.automicvault.com/pkg/brew/newlisp/) - Shares av.db curated category or tags: cli, interpreter, language-runtime, scripting-language.
- [abcl](https://www.automicvault.com/pkg/brew/abcl/) - Shares av.db curated category or tags: cli, interpreter, language-runtime.
- [algol68g](https://www.automicvault.com/pkg/brew/algol68g/) - Shares av.db curated category or tags: cli, interpreter, language-runtime.
- [arturo](https://www.automicvault.com/pkg/brew/arturo/) - Shares av.db curated category or tags: cli, interpreter, language-runtime.
- [befunge93](https://www.automicvault.com/pkg/brew/befunge93/) - Shares av.db curated category or tags: cli, interpreter, language-runtime.
- [chibi-scheme](https://www.automicvault.com/pkg/brew/chibi-scheme/) - Local package facts share a topical domain. Shared terms: as, cli, interpreter, language, language-runtime.
- [umka-lang](https://www.automicvault.com/pkg/brew/umka-lang/) - Local package facts share a topical domain. Shared terms: cli, language, language-runtime, runtime, scripting.

## Combined YAML source

View the package source record on GitHub. [combined/cbmbasic.yml](https://github.com/automic-vault/db/blob/main/combined/cbmbasic.yml)


## Sources

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