How To Install libdisk on CentOS 8

In this tutorial we learn how to install libdisk on CentOS 8. libdisk is A library for converting and manipulating disk images

Introduction

In this tutorial we learn how to install libdisk on CentOS 8.

What is libdisk

libdisk is a library for converting and manipulating disk images. It can create disk images in a range of formats from Kryoflux STREAM and SPS/IPF images (among others), and then allow these to be accessed and modified.

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

Install libdisk on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install libdisk

Install libdisk on CentOS 8 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install libdisk

How To Uninstall libdisk on CentOS 8

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

sudo dnf remove libdisk

References

Summary

In this tutorial we learn how to install libdisk on CentOS 8 using yum and dnf.