macOS
brew install testdisklocal Homebrew formula metadata
sudo port install testdiskMacPorts ports tree · sysutils/testdisk/Portfile · source: api.github.com
brew
Powerful free data recovery utility. Version 7.2 via Homebrew; verified from local package data.
install
brew install testdisklocal Homebrew formula metadata
sudo port install testdiskMacPorts ports tree · sysutils/testdisk/Portfile · source: api.github.com
sudo apk add testdiskAlpine Linux edge package indexes · testdisk · source: dl-cdn.alpinelinux.org
sudo apt install testdiskDebian stable package indexes · testdisk · source: deb.debian.org
sudo dnf install qphotorecFedora Rawhide package metadata · qphotorec · source: dl.fedoraproject.org
nix profile install nixpkgs#testdisknixpkgs package indexes · testdisk · source: raw.githubusercontent.com
sudo pacman -S testdiskArch Linux sync databases · testdisk · source: geo.mirror.pkgbuild.com
sudo zypper install photorecopenSUSE Tumbleweed package metadata · photorec · source: download.opensuse.org
scoop install extras/testdiskScoop official bucket manifest trees · bucket/testdisk.json · source: api.github.com
winget install --id CGSecurity.TestDisk -eWindows Package Manager source index · CGSecurity.TestDisk · source: cdn.winget.microsoft.com
overview
Powerful free data recovery utility
history
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
fidentify | cli | global executable | |
photorec | cli | global executable | |
testdisk | cli | global executable |
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.
https://www.cgsecurity.org/wiki/TestDisk
install metadata
| Package key | brew:testdisk |
|---|---|
| Version | 7.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/testdisk |
| Homepage | https://www.cgsecurity.org/wiki/TestDisk |
| Repository | https://git.cgsecurity.org/cgit/testdisk |
| Upstream docs | https://www.cgsecurity.org/testdisk.pdf |
| License | GPL-2.0-or-later |
| Source archive | https://www.cgsecurity.org/testdisk-7.2.tar.bz2 |
| Uses from macOS | ncurses |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
testdisk 7.2-0.1
Partition scanner and disk recovery tool, and PhotoRec file recovery tool
sudo apt install testdisktestdisk
nix profile install nixpkgs#testdisktestdisk 7.1-5+nmu1build2
Partition scanner and disk recovery tool, and PhotoRec file recovery tool
sudo apt install testdisktestdisk 7.2-r1
A data recovery suite
https://www.cgsecurity.org/wiki/TestDisk
sudo apk add testdisktestdisk-doc 7.2-r1
A data recovery suite (documentation)
https://www.cgsecurity.org/wiki/TestDisk
sudo apk add testdisk-docqphotorec 7.2-6.fc44
Signature based file carver. Recover lost files
https://www.cgsecurity.org/wiki/TestDisk
sudo dnf install qphotorectestdisk 7.2-6.fc44
Tool to check and undelete partition, PhotoRec recovers lost files
https://www.cgsecurity.org/wiki/TestDisk
sudo dnf install testdisktestdisk 7.2-3
Checks and undeletes partitions + PhotoRec, signature based recovery tool
https://www.cgsecurity.org/index.html?testdisk.html
sudo pacman -S testdiskphotorec 7.2-1.7
Tool to Undelete Files
https://www.cgsecurity.org/wiki/TestDisk
sudo zypper install photorecqphotorec 7.2-1.7
Graphical tool to Undelete Files
https://www.cgsecurity.org/wiki/TestDisk
sudo zypper install qphotorectestdisk 7.2-1.7
Tool to Recover and Fix Partitions
https://www.cgsecurity.org/wiki/TestDisk
sudo zypper install testdisktestdisk
sudo port install testdiskextras/testdisk
scoop install extras/testdiskCGSecurity.TestDisk
winget install --id CGSecurity.TestDisk -esource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.