Automic VaultAutomic Vault

brew

Install testdisk with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Powerful free data recovery utility. Version 7.2 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install testdisk

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install testdisk

MacPorts ports tree · sysutils/testdisk/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add testdisk

Alpine Linux edge package indexes · testdisk · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install testdisk

Debian stable package indexes · testdisk · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install qphotorec

Fedora Rawhide package metadata · qphotorec · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#testdisk

nixpkgs package indexes · testdisk · source: raw.githubusercontent.com

Arch Linux pacmanverified · 92%
sudo pacman -S testdisk

Arch Linux sync databases · testdisk · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install photorec

openSUSE Tumbleweed package metadata · photorec · source: download.opensuse.org

Windows

Scoopverified · 92%
scoop install extras/testdisk

Scoop official bucket manifest trees · bucket/testdisk.json · source: api.github.com

Windows Package Managerverified · 92%
winget install --id CGSecurity.TestDisk -e

Windows Package Manager source index · CGSecurity.TestDisk · source: cdn.winget.microsoft.com

overview

Package summary

Powerful free data recovery utility

Commands and aliases

  • fidentify
  • photorec
  • testdisk

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

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

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
fidentifycliglobal executable
photoreccliglobal executable
testdiskcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version7.2
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://www.cgsecurity.org/wiki/TestDisk

install metadata

Package metadata

Package keybrew:testdisk
Version7.2
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/testdisk
Homepagehttps://www.cgsecurity.org/wiki/TestDisk
Repositoryhttps://git.cgsecurity.org/cgit/testdisk
Upstream docshttps://www.cgsecurity.org/testdisk.pdf
LicenseGPL-2.0-or-later
Source archivehttps://www.cgsecurity.org/testdisk-7.2.tar.bz2
Uses from macOSncurses
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nametestdisk
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

testdisk 7.2-0.1

Partition scanner and disk recovery tool, and PhotoRec file recovery tool

sudo apt install testdisk
  • Section: admin
  • Architecture: amd64
  • 8 dependencies
  • normalized package name match
  • Matched by: Testdisk
Debian stable package indexes · deb.debian.org · Debian stable package indexes: testdisk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

testdisk

nix profile install nixpkgs#testdisk
  • normalized package name match
  • Matched by: Testdisk
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: testdisk from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

testdisk 7.1-5+nmu1build2

Partition scanner and disk recovery tool, and PhotoRec file recovery tool

sudo apt install testdisk
  • Section: universe/admin
  • Architecture: amd64
  • 9 dependencies
  • normalized package name match
  • Matched by: Testdisk
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: testdisk from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

testdisk 7.2-r1

A data recovery suite

https://www.cgsecurity.org/wiki/TestDisk

sudo apk add testdisk
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: testdisk
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Testdisk
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: testdisk from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

testdisk-doc 7.2-r1

A data recovery suite (documentation)

https://www.cgsecurity.org/wiki/TestDisk

sudo apk add testdisk-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: testdisk
  • normalized package name match
  • Matched by: Testdisk
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: testdisk-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

qphotorec 7.2-6.fc44

Signature based file carver. Recover lost files

https://www.cgsecurity.org/wiki/TestDisk

sudo dnf install qphotorec
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: testdisk
  • 12 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Testdisk
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: qphotorec from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

testdisk 7.2-6.fc44

Tool to check and undelete partition, PhotoRec recovers lost files

https://www.cgsecurity.org/wiki/TestDisk

sudo dnf install testdisk
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: testdisk
  • 9 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Testdisk
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: testdisk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

testdisk 7.2-3

Checks and undeletes partitions + PhotoRec, signature based recovery tool

https://www.cgsecurity.org/index.html?testdisk.html

sudo pacman -S testdisk
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • 3 dependencies
  • normalized package name match
  • Matched by: Testdisk
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: testdisk from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

photorec 7.2-1.7

Tool to Undelete Files

https://www.cgsecurity.org/wiki/TestDisk

sudo zypper install photorec
  • License: GPL-2.0-only
  • Category: System/Filesystems
  • Architecture: x86_64
  • Source Package: testdisk
  • 7 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Testdisk
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: photorec from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

qphotorec 7.2-1.7

Graphical tool to Undelete Files

https://www.cgsecurity.org/wiki/TestDisk

sudo zypper install qphotorec
  • License: GPL-2.0-only
  • Category: System/Filesystems
  • Architecture: x86_64
  • Source Package: testdisk
  • 10 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Testdisk
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: qphotorec from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

testdisk 7.2-1.7

Tool to Recover and Fix Partitions

https://www.cgsecurity.org/wiki/TestDisk

sudo zypper install testdisk
  • License: GPL-2.0-only
  • Category: System/Filesystems
  • Architecture: x86_64
  • Source Package: testdisk
  • 5 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Testdisk
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: testdisk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

testdisk

sudo port install testdisk
  • normalized package name match
  • Matched by: Testdisk
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/testdisk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

extras/testdisk

scoop install extras/testdisk
  • normalized package name match
  • Matched by: Testdisk
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/testdisk.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1
winget95%

CGSecurity.TestDisk

winget install --id CGSecurity.TestDisk -e
  • normalized package name match
  • Matched by: Testdisk
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: CGSecurity.TestDisk from https://cdn.winget.microsoft.com/cache/source.msix

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment