How To Install gdisk on Fedora 34

gdisk is An fdisk-like partitioning tool for GPT disks

Introduction

In this tutorial we learn how to install gdisk on Fedora 34.

What is gdisk

An fdisk-like partitioning tool for GPT disks. GPT fdisk features a command-line interface, fairly direct manipulation of partition table structures, recovery tools to help you deal with corrupt partition tables, and the ability to convert MBR disks to GPT format.

We can use yum or dnf to install gdisk on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install gdisk.

Install gdisk on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install gdisk using dnf by running the following command:

sudo dnf -y install gdisk

Install gdisk on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install gdisk using yum by running the following command:

sudo yum -y install gdisk

How To Uninstall gdisk on Fedora 34

To uninstall only the gdisk package we can use the following command:

sudo dnf remove gdisk

gdisk Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/de588a6bcc2ffe38cefa6287d2c2c714daa64b
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/37890b05f302f9747f56d211a1f73f89b54de0
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/2cd93bc2570468b38f0eba625114b73771655d
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/842fc48c1886e2536e9af5d272ce173ddee554
/usr/sbin/cgdisk
/usr/sbin/fixparts
/usr/sbin/gdisk
/usr/sbin/sgdisk
/usr/share/doc/gdisk
/usr/share/doc/gdisk/NEWS
/usr/share/doc/gdisk/README
/usr/share/doc/gdisk/gdisk_test.sh
/usr/share/licenses/gdisk
/usr/share/licenses/gdisk/COPYING
/usr/share/man/man8/cgdisk.8.gz
/usr/share/man/man8/fixparts.8.gz
/usr/share/man/man8/gdisk.8.gz
/usr/share/man/man8/sgdisk.8.gz
/usr/lib/.build-id
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/b41ba7468b89f0dbbc2a149a04663ef6f35bc4
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/0ddc57304587e28ee493a8943fc12e34c2310e
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/d6fc96e3628a2cafbcf0d7ab6ef0b3041aa9c9
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/9cae5348161d97ab90faad1de4102be382204d
/usr/sbin/cgdisk
/usr/sbin/fixparts
/usr/sbin/gdisk
/usr/sbin/sgdisk
/usr/share/doc/gdisk
/usr/share/doc/gdisk/NEWS
/usr/share/doc/gdisk/README
/usr/share/doc/gdisk/gdisk_test.sh
/usr/share/licenses/gdisk
/usr/share/licenses/gdisk/COPYING
/usr/share/man/man8/cgdisk.8.gz
/usr/share/man/man8/fixparts.8.gz
/usr/share/man/man8/gdisk.8.gz
/usr/share/man/man8/sgdisk.8.gz

References

Summary

In this tutorial we learn how to install gdisk on Fedora 34 using yum and dnf.