# testdisk を Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper でインストール

testdisk のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:testdisk
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install testdisk
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install testdisk
```

  証拠: MacPorts ports tree: sysutils/testdisk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add testdisk
```

  証拠: Alpine Linux edge package indexes: testdisk from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install testdisk
```

  証拠: Debian stable package indexes: testdisk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install qphotorec
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#testdisk
```

  証拠: nixpkgs package indexes: testdisk from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S testdisk
```

  証拠: Arch Linux sync databases: testdisk from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install photorec
```

  証拠: openSUSE Tumbleweed package metadata: photorec from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install extras/testdisk
```

  証拠: Scoop official bucket manifest trees: bucket/testdisk.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id CGSecurity.TestDisk -e
```

  証拠: Windows Package Manager source index: CGSecurity.TestDisk from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:testdisk
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/testdisk>
- **バージョン:** 7.2
- **ソース概要:** Powerful free data recovery utility
- **ホームページ:** <https://www.cgsecurity.org/wiki/TestDisk>
- **リポジトリ:** <https://git.cgsecurity.org/cgit/testdisk>
- **上流ドキュメント:** <https://www.cgsecurity.org/testdisk.pdf>
- **ライセンス:** GPL-2.0-or-later
- **ソースアーカイブ:** <https://www.cgsecurity.org/testdisk-7.2.tar.bz2>
- **生成日時:** 2026-07-08T18:08:21+00:00

## 実行可能ファイル

- fidentify (cli)
- photorec (cli)
- testdisk (cli)
- fidentify (エイリアス)
- photorec (エイリアス)
- testdisk (エイリアス)

## macOS 提供ライブラリ

- ncurses

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-07-08
- マネージャ版: 7.2
- ローカルデータ: OK
- 上流リポジトリ: https://www.cgsecurity.org/wiki/TestDisk
- 情報: No package-manager update timestamp was available.
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

TestDisk is CGSecurity's long-running free and open-source data-recovery utility for recovering lost partitions, repairing boot sectors, rebuilding partition tables, and copying files from damaged or deleted filesystems. It is distributed with PhotoRec and is licensed under GPL v2 or later.

### プロジェクトの歴史

The official TestDisk documentation states that TestDisk was created in 1998 by Christophe Grenier, followed by PhotoRec in April 2002. CGSecurity continues to publish both tools together, with source available through its official cgit repository and release 7.2 documented in 2024.

### 採用の歴史

TestDisk became a standard rescue-disk and package-manager tool because it targets emergency recovery work across operating systems rather than a single desktop workflow. Official docs list ready-to-use binaries for DOS, Windows, Linux, and macOS, with compilation support for BSD, Haiku, SunOS/Solaris, and other Unix-like systems; package metadata lists it across Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Scoop, Ubuntu, winget, and openSUSE.

### 使われ方

The package is usually installed when a disk, memory card, USB drive, or partition table has already failed. Users run the interactive terminal program with administrator privileges, select a disk, inspect partition tables, perform quick or deeper searches, repair NTFS/FAT boot sectors, or copy recoverable files before writing any partition changes.

### パッケージ好きにとっての重要性

TestDisk is a classic package-nerd rescue tool: boring to install on a good day, priceless on a bad one. It is valued because it is small, cross-platform, terminal-based, script-adjacent, and available from ordinary package managers before a recovery emergency occurs.

### タイムライン

- 1998: Christophe Grenier creates TestDisk.
- 2002: PhotoRec created in April 2002.
- 2008: Official cgit tags list v6.9 and v6.10 releases.
- 2015: Official cgit tags list v7.0.
- 2019: Official cgit tags list v7.1.
- 2024: Official wiki and cgit tags list TestDisk 7.2 on February 22, 2024.
- 2026: TestDisk 7.2 PDF documentation dated January 4, 2026.

### Related projects

- TestDisk is distributed with PhotoRec and QPhotoRec, and is often used alongside live rescue environments, ddrescue imaging workflows, filesystem repair tools, and forensic triage utilities.

### ソース

- <https://git.cgsecurity.org/cgit/testdisk/ official source repository.>
- <https://git.cgsecurity.org/cgit/testdisk/refs/tags official tag dates.>
- <https://www.cgsecurity.org/testdisk.pdf official PDF documentation with creation dates, author, platform notes, and recovery scope.>
- <https://www.cgsecurity.org/wiki/TestDisk official wiki description, license, supported tasks, operating systems, and documentation links.>
- source_facts.package-manager lists broad package-manager coverage.


## セキュリティノート

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:** testdisk
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 他のパッケージマネージャ記録

- Debian apt - testdisk - 7.2-0.1: normalized package name match | Debian stable package indexes: testdisk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Partition scanner and disk recovery tool, and PhotoRec file recovery tool
- Nix - testdisk: normalized package name match | nixpkgs package indexes: testdisk from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - testdisk - 7.1-5+nmu1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: testdisk from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Partition scanner and disk recovery tool, and PhotoRec file recovery tool
- apk - testdisk - 7.2-r1: normalized package name match | Alpine Linux edge package indexes: testdisk from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A data recovery suite | https://www.cgsecurity.org/wiki/TestDisk
- apk - testdisk-doc - 7.2-r1: normalized package name match | Alpine Linux edge package indexes: testdisk-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A data recovery suite (documentation) | https://www.cgsecurity.org/wiki/TestDisk
- dnf - qphotorec - 7.2-6.fc44: normalized package name match | Fedora Rawhide package metadata: qphotorec from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Signature based file carver. Recover lost files | https://www.cgsecurity.org/wiki/TestDisk
- dnf - testdisk - 7.2-6.fc44: normalized package name match | Fedora Rawhide package metadata: testdisk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Tool to check and undelete partition, PhotoRec recovers lost files | https://www.cgsecurity.org/wiki/TestDisk
- pacman - testdisk - 7.2-3: normalized package name match | Arch Linux sync databases: testdisk from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Checks and undeletes partitions + PhotoRec, signature based recovery tool | https://www.cgsecurity.org/index.html?testdisk.html
- zypper - photorec - 7.2-1.7: normalized package name match | openSUSE Tumbleweed package metadata: photorec from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Tool to Undelete Files | https://www.cgsecurity.org/wiki/TestDisk
- zypper - qphotorec - 7.2-1.7: normalized package name match | openSUSE Tumbleweed package metadata: qphotorec from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Graphical tool to Undelete Files | https://www.cgsecurity.org/wiki/TestDisk
- zypper - testdisk - 7.2-1.7: normalized package name match | openSUSE Tumbleweed package metadata: testdisk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Tool to Recover and Fix Partitions | https://www.cgsecurity.org/wiki/TestDisk
- MacPorts - testdisk: normalized package name match | MacPorts ports tree: sysutils/testdisk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - extras/testdisk: normalized package name match | Scoop official bucket manifest trees: bucket/testdisk.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1
- winget - CGSecurity.TestDisk: normalized package name match | Windows Package Manager source index: CGSecurity.TestDisk from https://cdn.winget.microsoft.com/cache/source.msix


## 関連リンク

- [Terminal utility packages](https://www.automicvault.com/ja/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/ja/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://www.automicvault.com/ja/pkg/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [Documentation packages](https://www.automicvault.com/ja/pkg/documentation-tools/) - Matched documentation, manual, or publishing metadata.
- [ddrescue](https://www.automicvault.com/ja/pkg/brew/ddrescue/) - Shares av.db curated category or tags: cli, data-recovery, disk-recovery, system.
- [gzrt](https://www.automicvault.com/ja/pkg/brew/gzrt/) - Shares av.db curated category or tags: cli, data-recovery, system.
- [lziprecover](https://www.automicvault.com/ja/pkg/brew/lziprecover/) - Shares av.db curated category or tags: cli, data-recovery, system.
- [par2](https://www.automicvault.com/ja/pkg/brew/par2/) - Shares av.db curated category or tags: cli, data-recovery, system.
- [recoverpy](https://www.automicvault.com/ja/pkg/brew/recoverpy/) - Shares av.db curated category or tags: cli, data-recovery, system.
- [abduco](https://www.automicvault.com/ja/pkg/brew/abduco/) - Shares av.db curated category or tags: cli, system.
- [acl](https://www.automicvault.com/ja/pkg/brew/acl/) - Shares av.db curated category or tags: cli, system.
- [acpica](https://www.automicvault.com/ja/pkg/brew/acpica/) - Shares av.db curated category or tags: cli, system.

## Combined YAML source

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