# Install cd-discid with Homebrew, apk, apt, dnf, MacPorts, zypper

Read CD and get CDDB discid information. Version 1.4 via Homebrew; verified 2026-06-19. Also installable with debian: sudo apt install cd-discid.

## Install

```sh
sudo av install brew:cd-discid
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cd-discid
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cd-discid
```

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

### Linux

- apk (92%):

```sh
sudo apk add cd-discid
```

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

- Debian apt (92%):

```sh
sudo apt install cd-discid
```

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

- dnf (92%):

```sh
sudo dnf install cd-discid
```

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

- zypper (92%):

```sh
sudo zypper install cd-discid
```

  Evidence: openSUSE Tumbleweed package metadata: cd-discid from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:cd-discid
- **Package manager:** Homebrew
- **Version:** 1.4
- **Source summary:** Read CD and get CDDB discid information
- **Homepage:** <https://linukz.org/cd-discid.shtml>
- **Repository:** <https://github.com/taem/cd-discid>
- **Last updated:** 2026-06-19T12:30:03-07:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- cd-discid (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.4
## Project history and usage

cd-discid is a small backend utility that reads an audio CD and prints CDDB disc-id information. It exists for scripts and metadata tools that need the classic CDDB query tuple or a MusicBrainz-compatible table of contents.

### Project history

The official README says cd-discid was developed with attention to CDDB specifications, using portions of their sample code. It identifies Robert Woodcock as the original author and Timur Birsh as the later maintainer.

The NEWS file traces releases back to version 0.2 in 1999, when cd-discid split off from cdgrab and stopped using libcdaudio. Later releases added Solaris, FreeBSD, OpenBSD, NetBSD, Mac OS X, Debian GNU/kFreeBSD, Debian GNU/Hurd, and MusicBrainz-related support.

### Adoption history

The input package facts list cd-discid in Homebrew, Debian, Ubuntu, Fedora/DNF, MacPorts, Alpine, openSUSE/Zypper, and other package ecosystems. That distribution matches its role as a tiny backend binary used by audio-ripping and metadata workflows.

### How it is used

The README shows cd-discid taking a CD-ROM device path and printing the 32-bit hex CDDB disc ID, track count, track frame offsets, and leadout length. The --musicbrainz option prints a table of contents suitable for calculating a MusicBrainz disc ID.

### Why package nerds care

cd-discid is notable because it packages a legacy physical-media metadata primitive into one C utility. It is small, portable, and useful to higher-level tools that want CDDB or MusicBrainz identifiers without embedding drive-specific C code.

### Timeline

- 1999: Version 0.2 split off from cdgrab and removed libcdaudio use.
- 2000: FreeBSD and OpenBSD support added.
- 2001: NetBSD support added.
- 2003: Mac OS X support added.
- 2009: Timur Birsh became maintainer and moved the project homepage.
- 2011: Version 1.2 added --musicbrainz output.
- 2013: Version 1.4 added --help, --version, DESTDIR install support, and fixes.

### Related projects

- CDDB/freedb supplied the query format and disc-id context described in the README.
- MusicBrainz is supported through the --musicbrainz table-of-contents output.

### Sources

- <https://api.github.com/repos/taem/cd-discid>
- <https://github.com/taem/cd-discid>
- <https://linukz.org/cd-discid.shtml>
- <https://github.com/taem/cd-discid#readme>
- <https://formulae.brew.sh/api/formula/cd-discid.json>


## Security Notes

narrow executable package without higher-risk signals.

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

## Other Package-Manager Records

- Debian apt - cd-discid - 1.4-2: normalized package name match | Debian stable package indexes: cd-discid from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | CDDB DiscID utility | http://linukz.org/cd-discid.shtml
- Ubuntu apt - cd-discid - 1.4-2: normalized package name match | Ubuntu 24.04 LTS package indexes: cd-discid from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | CDDB DiscID utility | http://linukz.org/cd-discid.shtml
- apk - cd-discid - 1.4-r7: normalized package name match | Alpine Linux edge package indexes: cd-discid from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A backend utility to get CDDB discid information from a CD-ROM disc | https://linukz.org/cd-discid.shtml
- apk - cd-discid-doc - 1.4-r7: normalized package name match | Alpine Linux edge package indexes: cd-discid-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A backend utility to get CDDB discid information from a CD-ROM disc (documentation) | https://linukz.org/cd-discid.shtml
- dnf - cd-discid - 1.4-33.fc45: normalized package name match | Fedora Rawhide package metadata: cd-discid from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Utility to get CDDB discid information | http://linukz.org/cd-discid.shtml
- zypper - cd-discid - 1.4-1.38: normalized package name match | openSUSE Tumbleweed package metadata: cd-discid from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Utility to get CDDB discid information | http://linukz.org/cd-discid.shtml
- MacPorts - cd-discid: normalized package name match | MacPorts ports tree: audio/cd-discid/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/cd-discid.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cd-discid.yml)


## Sources

- 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
