Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper 安装 testdisk

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install testdisk

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install testdisk

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add testdisk

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

Debian apt已验证 · 92%
sudo apt install testdisk

Debian stable package indexes · testdisk · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install qphotorec

Fedora Rawhide package metadata · qphotorec · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#testdisk

nixpkgs package indexes · testdisk · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S testdisk

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

openSUSE zypper已验证 · 92%
sudo zypper install photorec

openSUSE Tumbleweed package metadata · photorec · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install extras/testdisk

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

Windows Package Manager已验证 · 92%
winget install --id CGSecurity.TestDisk -e

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

概览

软件包摘要

Powerful free data recovery utility

命令和别名

  • fidentify
  • photorec
  • testdisk

历史

项目历史与用法

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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
fidentifycli全局可执行文件
photoreccli全局可执行文件
testdiskcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本7.2
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

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

安装元数据

软件包元数据

软件包键brew:testdisk
版本7.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/testdisk
主页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
macOS 提供的库ncurses
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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