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

## 软件包事实

- **软件包键:** brew:disktype
- **软件包管理器:** Homebrew
- **版本:** 9
- **来源摘要:** Detect content format of a disk or disk image
- **主页:** <https://disktype.sourceforge.net/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- disktype (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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-48.fc45: normalized package name match | Fedora Rawhide package metadata: disktype from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## Combined YAML source

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