# 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. Also installable with nix: nix profile install nixpkgs#gptfdisk.

## Install

```sh
sudo av install brew:gptfdisk
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gptfdisk
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gptfdisk
```

  Evidence: MacPorts ports tree: sysutils/gptfdisk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add gptfdisk
```

  Evidence: Alpine Linux edge package indexes: gptfdisk from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#gptfdisk
```

  Evidence: nixpkgs package indexes: pkgs/by-name/gp/gptfdisk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S gptfdisk
```

  Evidence: Arch Linux sync databases: gptfdisk from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install gptfdisk
```

  Evidence: openSUSE Tumbleweed package metadata: gptfdisk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- Debian apt (92%):

```sh
sudo apt install gdisk
```

  Evidence: Debian stable package indexes: gdisk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install gdisk
```

  Evidence: Fedora Rawhide package metadata: gdisk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/gdisk
```

  Evidence: Scoop official bucket manifest trees: bucket/gdisk.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:gptfdisk
- **Package manager:** Homebrew
- **Version:** 1.0.10
- **Source summary:** Text-mode partitioning tools
- **Homepage:** <https://www.rodsbooks.com/gdisk/>
- **Last updated:** 2026-06-25T13:37:44+02:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- cgdisk (alias)
- fixparts (alias)
- gdisk (alias)
- sgdisk (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.0.10
## 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.

### Sources

- <https://sourceforge.net/p/gptfdisk/code/ci/master/tree>
- <https://www.rodsbooks.com/gdisk>
- <https://www.rodsbooks.com/gdisk/download.html>
- <https://www.rodsbooks.com/gdisk/revisions.html>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

- Nix - gptfdisk: normalized package name match | nixpkgs package indexes: pkgs/by-name/gp/gptfdisk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - gptfdisk - 1.0.10-r1: normalized package name match | Alpine Linux edge package indexes: gptfdisk from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Text-mode partitioning tool that works on Globally Unique Identifier (GUID) Partition Table (GPT) disks | https://www.rodsbooks.com/gdisk
- apk - gptfdisk-doc - 1.0.10-r1: normalized package name match | Alpine Linux edge package indexes: gptfdisk-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Text-mode partitioning tool that works on Globally Unique Identifier (GUID) Partition Table (GPT) disks (documentation) | https://www.rodsbooks.com/gdisk
- apk - sgdisk - 1.0.10-r1: normalized package name match | Alpine Linux edge package indexes: sgdisk from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Command-line GUID partition table (GPT) manipulator | https://www.rodsbooks.com/gdisk
- pacman - gptfdisk - 1.0.10-2: normalized package name match | Arch Linux sync databases: gptfdisk from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A text-mode partitioning tool that works on GUID Partition Table (GPT) disks | https://www.rodsbooks.com/gdisk/
- zypper - gptfdisk - 1.0.10-1.7: normalized package name match | openSUSE Tumbleweed package metadata: gptfdisk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | GPT partitioning and MBR repair software | http://rodsbooks.com/gdisk
- zypper - gptfdisk-fixparts - 1.0.10-1.7: normalized package name match | openSUSE Tumbleweed package metadata: gptfdisk-fixparts from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A tool for repairing certain types of damage to MBR disks | http://rodsbooks.com/gdisk
- MacPorts - gptfdisk: normalized package name match | MacPorts ports tree: sysutils/gptfdisk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - gdisk - 1.0.10-2: installed executable or alias match | Debian stable package indexes: gdisk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GPT fdisk text-mode partitioning tool | http://sourceforge.net/projects/gptfdisk/
- Ubuntu apt - gdisk - 1.0.10-1build1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: gdisk from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GPT fdisk text-mode partitioning tool | http://sourceforge.net/projects/gptfdisk/
- dnf - gdisk - 1.0.10-6.fc45: installed executable or alias match | Fedora Rawhide package metadata: gdisk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | An fdisk-like partitioning tool for GPT disks | http://www.rodsbooks.com/gdisk/
- Scoop - main/gdisk: installed executable or alias match | Scoop official bucket manifest trees: bucket/gdisk.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/gptfdisk.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gptfdisk.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
