# Install cc65 with Homebrew, apk, apt, dnf, MacPorts, Nix, scoop

6502 C compiler. Version 2.19 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:cc65
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cc65
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cc65
```

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

### Linux

- apk (92%):

```sh
sudo apk add cc65
```

  Evidence: Alpine Linux edge package indexes: cc65 from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install cc65
```

  Evidence: Debian stable package indexes: cc65 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install cc65
```

  Evidence: Fedora Rawhide package metadata: cc65 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#cc65
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/cc65
```

  Evidence: Scoop official bucket manifest trees: bucket/cc65.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:cc65
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cc65>
- **Version:** 2.19
- **Source summary:** 6502 C compiler
- **Homepage:** <https://cc65.github.io/cc65/>
- **Repository:** <https://github.com/cc65/cc65>
- **Upstream docs:** <https://cc65.github.io/doc>
- **License:** Zlib
- **Source archive:** <https://github.com/cc65/cc65/archive/refs/tags/V2.19.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- ar65 (cli)
- ca65 (cli)
- cc65 (cli)
- chrcvt65 (cli)
- cl65 (cli)
- co65 (cli)
- da65 (cli)
- grc65 (cli)
- ld65 (cli)
- od65 (cli)
- sim65 (cli)
- sp65 (cli)
- ar65 (alias)
- ca65 (alias)
- cc65 (alias)
- chrcvt65 (alias)
- cl65 (alias)
- co65 (alias)
- da65 (alias)
- grc65 (alias)
- ld65 (alias)
- od65 (alias)
- sim65 (alias)
- sp65 (alias)

## Install behavior

- Post-install hook: not defined
- Caveats: Library files have been installed to: $HOMEBREW_CELLAR/cc65/2.19/share/cc65
- 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: 2.19
- Local data: ok
- Upstream repository: https://github.com/cc65/cc65
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

cc65 is a complete cross-development toolchain for 65(C)02 systems, including a C compiler, macro assembler, linker, archiver, simulator, and supporting tools.

### Project history

The official README traces cc65 to Ron Cain's Small C, enhanced by James E. Hendrix, then to John R. Dunning's Atari-hosted compiler/runtime implementation. Ullrich von Bassewitz moved the code to modern systems, rewrote most of the compiler, and rewrote the runtime library.

### Adoption history

cc65 became a long-lived retrocomputing toolchain because it supports many 6502-family targets, including Apple II, Atari 8-bit systems, Commodore machines, NES, Oric, BBC, PC Engine, KIM-1, Commander X16, and others. The supplied package facts show it is packaged across Homebrew, Debian, Fedora, MacPorts, Nix, Scoop, Ubuntu, and Alpine.

### How it is used

Developers use cc65 to build C and assembly programs for old 6502-family machines and custom hardware. The official documentation covers each tool and shows that ld65 linker configuration files define output layout, memory areas, and segment placement.

### Why package nerds care

cc65 is a classic package-manager fixture: a portable cross-compiler suite that lets modern hosts build software for many constrained historic targets. Its many small executables also make it a good test case for toolchain packaging, documentation paths, and target-library layout.

### Related projects

- Small C, ca65, ld65, cl65, sim65, and target ecosystems for Apple II, Atari, Commodore, NES, and other 65(C)02 machines.

### Sources

- <https://api.github.com/repos/cc65/cc65>
- <https://github.com/cc65/cc65>
- <https://cc65.github.io/cc65/>
- <https://cc65.github.io/doc>
- <https://cc65.github.io/doc/cc65.html>
- <https://cc65.github.io/doc/ld65.html>
- <https://cc65.github.io/getting-started.html>
- <https://formulae.brew.sh/api/formula/cc65.json>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: current directory, directories passed with --cfg-path, $LD65_CFG, $CC65_HOME/cfg
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cc65
- **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

- Debian apt - cc65 - 2.19-2: normalized package name match | Debian stable package indexes: cc65 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | complete cross development package for 65(C)02 systems | https://cc65.github.io/cc65/
- Debian apt - cc65-doc - 2.19-2: normalized package name match | Debian stable package indexes: cc65-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | cc65 documentation | https://cc65.github.io/cc65/
- Nix - cc65: normalized package name match | nixpkgs package indexes: pkgs/by-name/cc/cc65/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cc65 - 2.19-1: normalized package name match | Ubuntu 24.04 LTS package indexes: cc65 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | complete cross development package for 65(C)02 systems | https://cc65.github.io/cc65/
- Ubuntu apt - cc65-doc - 2.19-1: normalized package name match | Ubuntu 24.04 LTS package indexes: cc65-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | cc65 documentation | https://cc65.github.io/cc65/
- apk - cc65 - 2.19-r0: normalized package name match | Alpine Linux edge package indexes: cc65 from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Compiler Suite for 6502 based processors | https://cc65.github.io/
- dnf - cc65 - 2.19-15.fc44: normalized package name match | Fedora Rawhide package metadata: cc65 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A free C compiler for 6502 based systems | https://cc65.github.io
- dnf - cc65-devel - 2.19-15.fc44: normalized package name match | Fedora Rawhide package metadata: cc65-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for cc65 | https://cc65.github.io
- dnf - cc65-doc - 2.19-15.fc44: normalized package name match | Fedora Rawhide package metadata: cc65-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Documentation files for cc65 | https://cc65.github.io
- dnf - cc65-utils - 2.19-15.fc44: normalized package name match | Fedora Rawhide package metadata: cc65-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Additional utilities for cc65 | https://cc65.github.io
- MacPorts - cc65: normalized package name match | MacPorts ports tree: lang/cc65/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/cc65: normalized package name match | Scoop official bucket manifest trees: bucket/cc65.json from https://api.github.com/repos/ScoopInstaller/Main/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.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [i686-elf-binutils](https://www.automicvault.com/pkg/brew/i686-elf-binutils/) - Shares av.db curated category or tags: assembler, cli, cross-compilation, developer-tools, linker.
- [bsc](https://www.automicvault.com/pkg/brew/bsc/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [closure-compiler](https://www.automicvault.com/pkg/brew/closure-compiler/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [emscripten](https://www.automicvault.com/pkg/brew/emscripten/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [i686-elf-gcc](https://www.automicvault.com/pkg/brew/i686-elf-gcc/) - Shares av.db curated category or tags: cli, compiler, cross-compilation, developer-tools.
- [lunarml](https://www.automicvault.com/pkg/brew/lunarml/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [roblox-ts](https://www.automicvault.com/pkg/brew/roblox-ts/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [sdcc](https://www.automicvault.com/pkg/brew/sdcc/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [xa](https://www.automicvault.com/pkg/brew/xa/) - Local package facts share a topical domain. Shared terms: 6502, assembler, cli, computing, cross.
- [crosstool-ng](https://www.automicvault.com/pkg/brew/crosstool-ng/) - Local package facts share a topical domain. Shared terms: cli, compilation, cross, cross-compilation, developer.
- [shc](https://www.automicvault.com/pkg/brew/shc/) - Local package facts share a topical domain. Shared terms: cli, compilation, compiler, developer, developer-tools.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
