How To Install parted-devel.x86_64 on Amazon Linux 2

In this tutorial we learn how to install parted-devel.x86_64 in Amazon Linux 2. parted-devel.x86_64 is Files for developing apps which will manipulate disk partitions

Introduction

In this tutorial we learn how to install parted-devel.x86_64 on Amazon Linux 2.

What is parted-devel.x86_64

The GNU Parted library is a set of routines for hard disk partition manipulation. If you want to develop programs that manipulate disk partitions and filesystems using the routines provided by the GNU Parted library, you need to install this package.

We can use yum to install parted-devel.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install parted-devel.x86_64.

Install parted-devel.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install parted-devel.x86_64 using yum by running the following command:

sudo yum -y install parted-devel.x86_64

How To Uninstall parted-devel.x86_64 on Amazon Linux 2

To uninstall only the parted-devel.x86_64 package we can use the following command:

sudo yum remove parted-devel.x86_64

parted-devel.x86_64 Package Contents on Amazon Linux 2

/usr/include/parted
/usr/include/parted/constraint.h
/usr/include/parted/debug.h
/usr/include/parted/device.h
/usr/include/parted/disk.h
/usr/include/parted/exception.h
/usr/include/parted/filesys.h
/usr/include/parted/geom.h
/usr/include/parted/natmath.h
/usr/include/parted/parted.h
/usr/include/parted/timer.h
/usr/include/parted/unit.h
/usr/lib64/libparted.so
/usr/lib64/pkgconfig/libparted.pc

References

Summary

In this tutorial we learn how to install parted-devel.x86_64 on Amazon Linux 2 using yum.