Fdisk Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

Fdisk Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

fdisk

A program for managing partition tables and partitions on a hard disk.

Maintainer: LaMont Jones


Section: utils

Install fdisk

  • Debian apt-get install fdisk Click to copy
  • Ubuntu apt-get install fdisk Click to copy
  • Alpine OS apk add util-linux Click to copy
  • Arch Linux pacman -S util-linux Click to copy
  • Kali Linux apt-get install fdisk Click to copy
  • CentOS yum install util-linux Click to copy
  • Fedora dnf install util-linux Click to copy
  • Raspbian apt-get install util-linux Click to copy
  • macOS brew install util-linux Click to copy

A program for managing partition tables and partitions on a hard disk.

How to use fdisk?

Below are few example commands for fdisk that you can use in the terminal.

List partitions:
fdisk -lClick to copy
Start the partition manipulator:
fdisk /dev/sdaClick to copy
Installing fdisk command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of fdisk 2026 package in your OS.