# 使用 Homebrew, apk, apt, dnf, MacPorts, zypper 安装 cd-discid

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

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

  证据: local Homebrew formula metadata

- MacPorts (94%):

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

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:cd-discid
- **软件包管理器:** Homebrew
- **版本:** 1.4
- **来源摘要:** Read CD and get CDDB discid information
- **主页:** <https://linukz.org/cd-discid.shtml>
- **仓库:** <https://github.com/taem/cd-discid>
- **最后更新:** 2026-06-19T12:30:03-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cd-discid (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

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

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.

### 时间线

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

### 来源

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


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

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


## 来源

- 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
