Automic VaultAutomic Vault

brew

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

Text-mode partitioning tools. Version 1.0.10 via Homebrew; verified 2026-06-25.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install gptfdisk

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install gptfdisk

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

Linux

Alpine Linux apkverified · 92%
sudo apk add gptfdisk

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

Nixverified · 92%
nix profile install nixpkgs#gptfdisk

nixpkgs package indexes · pkgs/by-name/gp/gptfdisk/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S gptfdisk

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

openSUSE zypperverified · 92%
sudo zypper install gptfdisk

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

Debian aptverified · 92%
sudo apt install gdisk

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

Fedora dnfverified · 92%
sudo dnf install gdisk

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

Windows

Scoopverified · 92%
scoop install main/gdisk

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

overview

Package summary

Text-mode partitioning tools

Commands and aliases

  • cgdisk
  • fixparts
  • gdisk
  • sgdisk

history

Project history and usage

GPT fdisk is Rod Smith's family of text-mode partitioning tools for GUID Partition Table disks, including `gdisk`, `cgdisk`, `sgdisk`, and `fixparts`.

Project history

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.

Adoption history

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.

How it is used

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

Why package nerds care

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.

Timeline

  • 2009: Early beta-era `gdisk` releases receive successful-use reports and precompiled RPMs.
  • 2010: Version 0.6.0 adds non-512-byte-sector support and the new `sgdisk` program.
  • 2010: Version 0.6.2 adds Windows support.
  • 2011: Version 0.7.0 adds `fixparts`.
  • 2011: Version 0.8.0 adds `cgdisk`.
  • 2015: Version 1.0.0 moves GPT fdisk out of beta status.
  • 2021: Version 1.0.7 adds ARM64 Mac builds for `gdisk` and `fixparts`.
  • 2022: Version 1.0.9 adds Windows builds for `sgdisk` and `cgdisk`.
  • 2024: Version 1.0.10 includes bug fixes and disk-handling improvements.

Related projects

  • FreeBSD `gpt`, traditional `fdisk`, `cfdisk`, parted-style tools, UEFI firmware, rEFInd, and Linux rescue systems are recurring comparisons or environments in the GPT fdisk documentation.
  • `fixparts` has its own official page but is part of the GPT fdisk package family.

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 10 platform targets.
  • Installs with 1 runtime dependencies.

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
cgdiskcliglobal executable
fixpartscliglobal executable
gdiskcliglobal executable
sgdiskcliglobal 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 version1.0.10
manager updated2026-06-25
local dataok
upstreamnot checked
latest detectednot detected

https://www.rodsbooks.com/gdisk/

install metadata

Package metadata

Package keybrew:gptfdisk
Version1.0.10
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/gptfdisk
Homepagehttps://www.rodsbooks.com/gdisk/
Repositoryhttps://sourceforge.net/p/gptfdisk/code/ci/master/tree
Upstream docshttps://www.rodsbooks.com/gdisk
LicenseGPL-2.0-or-later
Source archivehttps://downloads.sourceforge.net/project/gptfdisk/gptfdisk/1.0.10/gptfdisk-1.0.10.tar.gz
Last updated2026-06-25T13:37:44+02:00
Pulseupdated
Dependenciespopt
Uses from macOSncurses
Bottleavailable (on arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegptfdisk
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.

Nix95%

gptfdisk

nix profile install nixpkgs#gptfdisk
  • normalized package name match
  • Matched by: Gptfdisk
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gp/gptfdisk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

gptfdisk 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 gptfdisk
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: gptfdisk
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gptfdisk
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gptfdisk from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

gptfdisk-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-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: gptfdisk
  • normalized package name match
  • Matched by: Gptfdisk
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gptfdisk-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

sgdisk 1.0.10-r1

Command-line GUID partition table (GPT) manipulator

https://www.rodsbooks.com/gdisk

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

gptfdisk 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 gptfdisk
  • License: GPL2
  • Architecture: x86_64
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gptfdisk
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: gptfdisk from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

gptfdisk 1.0.10-1.5

GPT partitioning and MBR repair software

http://rodsbooks.com/gdisk

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

gptfdisk-fixparts 1.0.10-1.5

A tool for repairing certain types of damage to MBR disks

http://rodsbooks.com/gdisk

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

gptfdisk

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

gdisk 1.0.10-2

GPT fdisk text-mode partitioning tool

http://sourceforge.net/projects/gptfdisk/

sudo apt install gdisk
  • Section: admin
  • Architecture: amd64
  • 7 dependencies
  • 1 optional deps
  • installed executable or alias match
  • Matched by: Gdisk
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gdisk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt92%

gdisk 1.0.10-1build1

GPT fdisk text-mode partitioning tool

http://sourceforge.net/projects/gptfdisk/

sudo apt install gdisk
  • Section: admin
  • Architecture: amd64
  • 7 dependencies
  • 1 optional deps
  • installed executable or alias match
  • Matched by: Gdisk
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gdisk from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
dnf92%

gdisk 1.0.10-5.fc44

An fdisk-like partitioning tool for GPT disks

http://www.rodsbooks.com/gdisk/

sudo dnf install gdisk
  • License: GPL-2.0-only
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gdisk
  • 10 dependencies
  • 1 provides
  • installed executable or alias match
  • Matched by: Gdisk
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gdisk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
Scoop92%

main/gdisk

scoop install main/gdisk
  • installed executable or alias match
  • Matched by: Gdisk
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/gdisk.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

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