# 使用 Homebrew, apt, dnf, MacPorts 安装 disktype

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

## 安装

```sh
sudo av install brew:disktype
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install disktype
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install disktype
```

  证据: MacPorts ports tree: sysutils/disktype/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install disktype
```

  证据: Debian stable package indexes: disktype from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install disktype
```

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

## 软件包事实

- **软件包键:** brew:disktype
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/disktype>
- **版本:** 9
- **来源摘要:** Detect content format of a disk or disk image
- **主页:** <https://disktype.sourceforge.net/>
- **仓库:** <https://sourceforge.net/p/disktype/disktype>
- **上游文档:** <https://disktype.sourceforge.net/>
- **许可证:** MIT
- **源码归档:** <https://downloads.sourceforge.net/project/disktype/disktype/9/disktype-9.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- disktype (cli)
- disktype (别名)

## 安装行为

- 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
- 管理器版本: 9
- 本地数据: OK
- 上游仓库: https://disktype.sourceforge.net/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

disktype is an older C utility for identifying the content format of a disk or disk image by checking signatures for filesystems, partition tables, boot code, archives, compression formats, and disk image formats. It belongs to the toolbox tradition of small Unix inspection commands that answer one storage question clearly.

### 项目历史

The upstream SourceForge site presents disktype as a self-contained C program intended to compile on modern Unix-like systems without special libraries in the common case. The project distributed numbered source tarballs on SourceForge, with the public file feed showing releases from version 1 in February 2003 through version 9 in June 2006.

### 采用历史

The project page explicitly invited distribution packagers and noted Debian, Fink, and OpenCSW packaging. Later package-manager records in the input show continued availability through Homebrew, Debian, Fedora, MacPorts, and Ubuntu, which fits its role as a small storage-forensics helper rather than a frequently changing application.

### 使用方式

disktype is used when a user has a block device, image file, or recovered blob and wants a fast guess at the structures inside it. The official documentation emphasizes both command usage and background notes on recognized formats, making it useful as a practical detector and a reference for interpreting output.

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

For package nerds, disktype is a fossil from the SourceForge-era Unix utility ecosystem: a tiny C program, versioned tarballs, CVS-era project hosting, and enough utility to remain packaged long after its most active release period.

### 时间线

- 2003-02: version 1 source tarball published
- 2003-2006: official documentation copyright range
- 2006-06: version 9 source tarball published

### Related projects

- Related tools include `file` for general magic-based identification, filesystem-specific inspection tools, and recovery-oriented utilities such as the gpart-style tools linked from the upstream site.

### 来源

- <https://disktype.sourceforge.net/>
- <https://disktype.sourceforge.net/doc/>
- <https://sourceforge.net/projects/disktype/rss?path=/disktype>
- <https://sourceforge.net/p/disktype/disktype/>
- <https://formulae.brew.sh/formula/disktype>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

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

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

- Debian apt - disktype - 9-13: normalized package name match | Debian stable package indexes: disktype from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | detection of content format of a disk or disk image | http://disktype.sf.net
- Ubuntu apt - disktype - 9-12: normalized package name match | Ubuntu 24.04 LTS package indexes: disktype from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | detection of content format of a disk or disk image | http://disktype.sf.net
- dnf - disktype - 9-47.fc44: normalized package name match | Fedora Rawhide package metadata: disktype from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Detect the content format of a disk or disk image | http://disktype.sourceforge.net/
- MacPorts - disktype: normalized package name match | MacPorts ports tree: sysutils/disktype/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [device-mapper](https://www.automicvault.com/zh-hans/pkg/brew/device-mapper/) - Shares av.db curated category or tags: cli, storage, system.
- [di](https://www.automicvault.com/zh-hans/pkg/brew/di/) - Shares av.db curated category or tags: cli, storage, system.
- [dua-cli](https://www.automicvault.com/zh-hans/pkg/brew/dua-cli/) - Shares av.db curated category or tags: cli, filesystem, storage, system.
- [duc](https://www.automicvault.com/zh-hans/pkg/brew/duc/) - Shares av.db curated category or tags: cli, filesystem, storage, system.
- [fio](https://www.automicvault.com/zh-hans/pkg/brew/fio/) - Shares av.db curated category or tags: cli, storage, system.
- [gdu](https://www.automicvault.com/zh-hans/pkg/brew/gdu/) - Shares av.db curated category or tags: cli, storage, system.
- [gptfdisk](https://www.automicvault.com/zh-hans/pkg/brew/gptfdisk/) - Shares av.db curated category or tags: cli, storage, system.
- [gsmartcontrol](https://www.automicvault.com/zh-hans/pkg/brew/gsmartcontrol/) - Shares av.db curated category or tags: cli, storage, system.
- [gptsync](https://www.automicvault.com/zh-hans/pkg/brew/gptsync/) - Local package facts share a topical domain. Shared terms: cli, storage, system.

## Combined YAML source

View the package source record on GitHub. [combined/disktype.yml](https://github.com/automic-vault/db/blob/main/combined/disktype.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
