How To Install pyparted.x86_64 on Amazon Linux 2

In this tutorial we learn how to install pyparted.x86_64 in Amazon Linux 2. pyparted.x86_64 is Python module for GNU parted

Introduction

In this tutorial we learn how to install pyparted.x86_64 on Amazon Linux 2.

What is pyparted.x86_64

Python module for the parted library. It is used for manipulating partition tables.

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

Install pyparted.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 pyparted.x86_64 using yum by running the following command:

sudo yum -y install pyparted.x86_64

How To Uninstall pyparted.x86_64 on Amazon Linux 2

To uninstall only the pyparted.x86_64 package we can use the following command:

sudo yum remove pyparted.x86_64

pyparted.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/python2.7/site-packages/_pedmodule.so
/usr/lib64/python2.7/site-packages/parted
/usr/lib64/python2.7/site-packages/parted/__init__.py
/usr/lib64/python2.7/site-packages/parted/__init__.pyc
/usr/lib64/python2.7/site-packages/parted/__init__.pyo
/usr/lib64/python2.7/site-packages/parted/alignment.py
/usr/lib64/python2.7/site-packages/parted/alignment.pyc
/usr/lib64/python2.7/site-packages/parted/alignment.pyo
/usr/lib64/python2.7/site-packages/parted/cachedlist.py
/usr/lib64/python2.7/site-packages/parted/cachedlist.pyc
/usr/lib64/python2.7/site-packages/parted/cachedlist.pyo
/usr/lib64/python2.7/site-packages/parted/constraint.py
/usr/lib64/python2.7/site-packages/parted/constraint.pyc
/usr/lib64/python2.7/site-packages/parted/constraint.pyo
/usr/lib64/python2.7/site-packages/parted/decorators.py
/usr/lib64/python2.7/site-packages/parted/decorators.pyc
/usr/lib64/python2.7/site-packages/parted/decorators.pyo
/usr/lib64/python2.7/site-packages/parted/device.py
/usr/lib64/python2.7/site-packages/parted/device.pyc
/usr/lib64/python2.7/site-packages/parted/device.pyo
/usr/lib64/python2.7/site-packages/parted/disk.py
/usr/lib64/python2.7/site-packages/parted/disk.pyc
/usr/lib64/python2.7/site-packages/parted/disk.pyo
/usr/lib64/python2.7/site-packages/parted/filesystem.py
/usr/lib64/python2.7/site-packages/parted/filesystem.pyc
/usr/lib64/python2.7/site-packages/parted/filesystem.pyo
/usr/lib64/python2.7/site-packages/parted/geometry.py
/usr/lib64/python2.7/site-packages/parted/geometry.pyc
/usr/lib64/python2.7/site-packages/parted/geometry.pyo
/usr/lib64/python2.7/site-packages/parted/partition.py
/usr/lib64/python2.7/site-packages/parted/partition.pyc
/usr/lib64/python2.7/site-packages/parted/partition.pyo
/usr/lib64/python2.7/site-packages/pyparted-3.9-py2.7.egg-info
/usr/share/doc/pyparted-3.9
/usr/share/doc/pyparted-3.9/AUTHORS
/usr/share/doc/pyparted-3.9/BUGS
/usr/share/doc/pyparted-3.9/COPYING
/usr/share/doc/pyparted-3.9/ChangeLog
/usr/share/doc/pyparted-3.9/NEWS
/usr/share/doc/pyparted-3.9/README
/usr/share/doc/pyparted-3.9/TODO

References

Summary

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