macOS
brew install gptfdisklocal Homebrew formula metadata
sudo port install gptfdiskMacPorts ports tree · sysutils/gptfdisk/Portfile · source: api.github.com
brew
Text-mode partitioning tools. Version 1.0.10 via Homebrew; verified 2026-06-25.
install
brew install gptfdisklocal Homebrew formula metadata
sudo port install gptfdiskMacPorts ports tree · sysutils/gptfdisk/Portfile · source: api.github.com
sudo apk add gptfdiskAlpine Linux edge package indexes · gptfdisk · source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#gptfdisknixpkgs package indexes · pkgs/by-name/gp/gptfdisk/package.nix · source: api.github.com
sudo pacman -S gptfdiskArch Linux sync databases · gptfdisk · source: geo.mirror.pkgbuild.com
sudo zypper install gptfdiskopenSUSE Tumbleweed package metadata · gptfdisk · source: download.opensuse.org
sudo apt install gdiskDebian stable package indexes · gdisk · source: deb.debian.org
sudo dnf install gdiskFedora Rawhide package metadata · gdisk · source: dl.fedoraproject.org
scoop install main/gdiskScoop official bucket manifest trees · bucket/gdisk.json · source: api.github.com
overview
Text-mode partitioning tools
history
GPT fdisk is Rod Smith's family of text-mode partitioning tools for GUID Partition Table disks, including `gdisk`, `cgdisk`, `sgdisk`, and `fixparts`.
The official GPT fdisk page describes `gdisk`, `cgdisk`, and `sgdisk` as tools for GPT disks rather than older MBR partition tables, while `fixparts` repairs certain MBR damage and converts partition types between primary and logical.
The revisions page shows a long beta-era progression from early `gdisk` releases through added Mac OS X support, hybrid MBR handling, FreeBSD support, Windows support, non-512-byte-sector support, and the addition of `sgdisk` for scripts.
Version 0.7.0 added `fixparts` in March 2011, and version 0.8.0 added `cgdisk` in September 2011 as a cfdisk-like interface. Version 1.0.0 in March 2015 moved GPT fdisk out of beta status because the program had been used for years and appeared reliable.
The author-maintained rodsbooks.com pages remain the documentation center, while SourceForge provides source code and downloads for source and non-Linux binaries.
GPT fdisk became important as EFI and GPT partitioning became ordinary on PCs, Macs, removable media, and large disks. It gave Unix users an fdisk-like workflow for GPT and gave script authors `sgdisk` for repeatable partition-table operations.
The tool family also filled a practical migration gap: its documentation covers MBR-to-GPT conversion, GPT-to-MBR conversion, hybrid MBRs, wiping GPT data, booting from GPT, and protective MBR details.
Its package-manager footprint is broad because disk partitioning tools must be available in rescue systems, installers, live environments, and administrator workstations.
`gdisk` is the interactive expert-style tool, `cgdisk` offers a curses interface, `sgdisk` is suited to scripts and automation, and `fixparts` handles broken MBR partition tables.
Administrators use GPT fdisk for inspecting and editing GPT partition tables, converting legacy layouts, repairing GPT metadata, creating hybrid MBRs in edge cases, and preparing disks from rescue or installer environments.
The official documentation warns about platform limits such as FreeBSD write behavior on mounted disks and macOS System Integrity Protection restricting low-level access to system disks.
GPT fdisk is a package-nerd staple because it is both powerful and dangerous in the traditional Unix way: small named executables, manpages, scriptable operations, and direct disk writes.
It is also historically interesting because it tracks the storage transition from MBR assumptions to GPT/UEFI norms, including alignment issues, Advanced Format drives, hybrid MBR compatibility, Windows/macOS/FreeBSD support, and rescue-disk packaging.
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 |
|---|---|---|---|
cgdisk | cli | global executable | |
fixparts | cli | global executable | |
gdisk | cli | global executable | |
sgdisk | 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.rodsbooks.com/gdisk/
install metadata
| Package key | brew:gptfdisk |
|---|---|
| Version | 1.0.10 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/gptfdisk |
| Homepage | https://www.rodsbooks.com/gdisk/ |
| Repository | https://sourceforge.net/p/gptfdisk/code/ci/master/tree |
| Upstream docs | https://www.rodsbooks.com/gdisk |
| License | GPL-2.0-or-later |
| Source archive | https://downloads.sourceforge.net/project/gptfdisk/gptfdisk/1.0.10/gptfdisk-1.0.10.tar.gz |
| Last updated | 2026-06-25T13:37:44+02:00 |
| Pulse | updated |
| Dependencies | popt |
| Uses from macOS | ncurses |
| Bottle | available (on arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gptfdisk |
| 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.
gptfdisk
nix profile install nixpkgs#gptfdiskgptfdisk 1.0.10-r1
Text-mode partitioning tool that works on Globally Unique Identifier (GUID) Partition Table (GPT) disks
https://www.rodsbooks.com/gdisk
sudo apk add gptfdiskgptfdisk-doc 1.0.10-r1
Text-mode partitioning tool that works on Globally Unique Identifier (GUID) Partition Table (GPT) disks (documentation)
https://www.rodsbooks.com/gdisk
sudo apk add gptfdisk-docsgdisk 1.0.10-r1
Command-line GUID partition table (GPT) manipulator
https://www.rodsbooks.com/gdisk
sudo apk add sgdiskgptfdisk 1.0.10-2
A text-mode partitioning tool that works on GUID Partition Table (GPT) disks
https://www.rodsbooks.com/gdisk/
sudo pacman -S gptfdiskgptfdisk 1.0.10-1.5
GPT partitioning and MBR repair software
sudo zypper install gptfdiskgptfdisk-fixparts 1.0.10-1.5
A tool for repairing certain types of damage to MBR disks
sudo zypper install gptfdisk-fixpartsgptfdisk
sudo port install gptfdiskgdisk 1.0.10-2
GPT fdisk text-mode partitioning tool
http://sourceforge.net/projects/gptfdisk/
sudo apt install gdiskgdisk 1.0.10-1build1
GPT fdisk text-mode partitioning tool
http://sourceforge.net/projects/gptfdisk/
sudo apt install gdiskgdisk 1.0.10-5.fc44
An fdisk-like partitioning tool for GPT disks
http://www.rodsbooks.com/gdisk/
sudo dnf install gdiskmain/gdisk
scoop install main/gdisksource 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.