Fdisk Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS
Install fdisk
-
Debian
apt-get install fdiskClick to copy -
Ubuntu
apt-get install fdiskClick to copy -
Alpine OS
apk add util-linuxClick to copy -
Arch Linux
pacman -S util-linuxClick to copy -
Kali Linux
apt-get install fdiskClick to copy -
CentOS
yum install util-linuxClick to copy -
Fedora
dnf install util-linuxClick to copy -
Raspbian
apt-get install util-linuxClick to copy -
macOS
brew install util-linuxClick 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 copyStart 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.




