# 使用 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## 软件包事实

- **软件包键:** brew:cd-discid
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cd-discid>
- **版本:** 1.4
- **来源摘要:** Read CD and get CDDB discid information
- **主页:** <https://linukz.org/cd-discid.shtml>
- **仓库:** <https://github.com/taem/cd-discid>
- **上游文档:** <https://github.com/taem/cd-discid#readme>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://linukz.org/download/cd-discid-1.4.tar.gz>
- **最后更新:** 2026-06-19T12:30:03-07:00
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- cd-discid (cli)
- cd-discid (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.4
- 管理器更新时间: 2026-06-19
- 本地数据: OK
- 上游仓库: https://linukz.org/cd-discid.shtml
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cd-discid
- **Version Scheme:** 0
- **Revision:** 2
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- 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-32.fc44: 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Utility to get CDDB discid information | http://linukz.org/cd-discid.shtml
- zypper - cd-discid - 1.4-1.36: normalized package name match | openSUSE Tumbleweed package metadata: cd-discid from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-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


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/zh-hans/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [avimetaedit](https://www.automicvault.com/zh-hans/pkg/brew/avimetaedit/) - Shares av.db curated category or tags: cli, media, metadata.
- [bwfmetaedit](https://www.automicvault.com/zh-hans/pkg/brew/bwfmetaedit/) - Shares av.db curated category or tags: cli, media, metadata.
- [dovi_tool](https://www.automicvault.com/zh-hans/pkg/brew/dovi-tool/) - Shares av.db curated category or tags: cli, media, metadata.
- [exempi](https://www.automicvault.com/zh-hans/pkg/brew/exempi/) - Shares av.db curated category or tags: cli, media, metadata.
- [exif](https://www.automicvault.com/zh-hans/pkg/brew/exif/) - Shares av.db curated category or tags: cli, media, metadata.
- [exiftags](https://www.automicvault.com/zh-hans/pkg/brew/exiftags/) - Shares av.db curated category or tags: cli, media, metadata.
- [exiftool](https://www.automicvault.com/zh-hans/pkg/brew/exiftool/) - Shares av.db curated category or tags: cli, media, metadata.
- [exiv2](https://www.automicvault.com/zh-hans/pkg/brew/exiv2/) - Shares av.db curated category or tags: cli, media, metadata.
- [media-info](https://www.automicvault.com/zh-hans/pkg/brew/media-info/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, media, metadata.

## Combined YAML source

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


## 来源

- 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
