How To Install parted on CentOS 8

parted is The GNU disk partition manipulation program The GNU disk partition manipulation program

Introduction

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

What is parted

The GNU Parted program allows you to create, destroy, resize, move, and copy hard disk partitions. Parted can be used for creating space for new operating systems, reorganizing disk usage, and copying data to new hard disks. parted 3.2 38.el8 x86_64 557 k parted-3.2-38.el8.src.rpm baseos The GNU disk partition manipulation program http GPLv3+ The GNU Parted program allows you to create, destroy, resize, move, and copy hard disk partitions. Parted can be used for creating space for new operating systems, reorganizing disk usage, and copying data to new hard disks.

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

Install parted on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install parted

Install parted on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install parted

How To Uninstall parted on CentOS 8

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

sudo dnf remove parted

parted Package Contents on CentOS 8

/lib/libparted-fs-resize.so.0
/lib/libparted-fs-resize.so.0.0.1
/lib/libparted.so.2
/lib/libparted.so.2.0.1
/sbin/parted
/sbin/partprobe
/usr/lib/.build-id
/usr/lib/.build-id/30
/usr/lib/.build-id/30/88f4d59123408a8fe3a9e9c411b0c85b47ef11
/usr/lib/.build-id/41
/usr/lib/.build-id/41/55dd5ebce2f6a765234d22aa4e374bd5c61e75
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/1783660d68be72b6586d2f919168fa8b890229
/usr/lib/.build-id/73
/usr/lib/.build-id/73/96a0b77a9ca0699b91ffe8b37d9c9aaedce063
/usr/share/doc/parted
/usr/share/doc/parted/AUTHORS
/usr/share/doc/parted/NEWS
/usr/share/doc/parted/README
/usr/share/doc/parted/THANKS
/usr/share/info/parted.info.gz
/usr/share/licenses/parted
/usr/share/licenses/parted/COPYING
/usr/share/locale/ca/LC_MESSAGES/parted.mo
/usr/share/locale/cs/LC_MESSAGES/parted.mo
/usr/share/locale/da/LC_MESSAGES/parted.mo
/usr/share/locale/de/LC_MESSAGES/parted.mo
/usr/share/locale/es/LC_MESSAGES/parted.mo
/usr/share/locale/fr/LC_MESSAGES/parted.mo
/usr/share/locale/gl/LC_MESSAGES/parted.mo
/usr/share/locale/id/LC_MESSAGES/parted.mo
/usr/share/locale/it/LC_MESSAGES/parted.mo
/usr/share/locale/ja/LC_MESSAGES/parted.mo
/usr/share/locale/nl/LC_MESSAGES/parted.mo
/usr/share/locale/nn/LC_MESSAGES/parted.mo
/usr/share/locale/pl/LC_MESSAGES/parted.mo
/usr/share/locale/pt/LC_MESSAGES/parted.mo
/usr/share/locale/pt_BR/LC_MESSAGES/parted.mo
/usr/share/locale/ro/LC_MESSAGES/parted.mo
/usr/share/locale/ru/LC_MESSAGES/parted.mo
/usr/share/locale/rw/LC_MESSAGES/parted.mo
/usr/share/locale/sk/LC_MESSAGES/parted.mo
/usr/share/locale/sl/LC_MESSAGES/parted.mo
/usr/share/locale/sr/LC_MESSAGES/parted.mo
/usr/share/locale/sv/LC_MESSAGES/parted.mo
/usr/share/locale/tr/LC_MESSAGES/parted.mo
/usr/share/locale/uk/LC_MESSAGES/parted.mo
/usr/share/locale/vi/LC_MESSAGES/parted.mo
/usr/share/locale/zh_CN/LC_MESSAGES/parted.mo
/usr/share/locale/zh_TW/LC_MESSAGES/parted.mo
/usr/share/man/man8/parted.8.gz
/usr/share/man/man8/partprobe.8.gz
/lib64/libparted-fs-resize.so.0
/lib64/libparted-fs-resize.so.0.0.1
/lib64/libparted.so.2
/lib64/libparted.so.2.0.1
/sbin/parted
/sbin/partprobe
/usr/lib/.build-id
/usr/lib/.build-id/20
/usr/lib/.build-id/20/a20fd1c0c21c6cd9749534869b5fd5bd35a63d
/usr/lib/.build-id/63
/usr/lib/.build-id/63/539f48cd5fe9433e72c199f0c7845f397879c5
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/e9d69364af31c9d0876f90985f96929fdf0262
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/4be4bb2863de560a256b280386b08df7fc4807
/usr/share/doc/parted
/usr/share/doc/parted/AUTHORS
/usr/share/doc/parted/NEWS
/usr/share/doc/parted/README
/usr/share/doc/parted/THANKS
/usr/share/info/parted.info.gz
/usr/share/licenses/parted
/usr/share/licenses/parted/COPYING
/usr/share/locale/ca/LC_MESSAGES/parted.mo
/usr/share/locale/cs/LC_MESSAGES/parted.mo
/usr/share/locale/da/LC_MESSAGES/parted.mo
/usr/share/locale/de/LC_MESSAGES/parted.mo
/usr/share/locale/es/LC_MESSAGES/parted.mo
/usr/share/locale/fr/LC_MESSAGES/parted.mo
/usr/share/locale/gl/LC_MESSAGES/parted.mo
/usr/share/locale/id/LC_MESSAGES/parted.mo
/usr/share/locale/it/LC_MESSAGES/parted.mo
/usr/share/locale/ja/LC_MESSAGES/parted.mo
/usr/share/locale/nl/LC_MESSAGES/parted.mo
/usr/share/locale/nn/LC_MESSAGES/parted.mo
/usr/share/locale/pl/LC_MESSAGES/parted.mo
/usr/share/locale/pt/LC_MESSAGES/parted.mo
/usr/share/locale/pt_BR/LC_MESSAGES/parted.mo
/usr/share/locale/ro/LC_MESSAGES/parted.mo
/usr/share/locale/ru/LC_MESSAGES/parted.mo
/usr/share/locale/rw/LC_MESSAGES/parted.mo
/usr/share/locale/sk/LC_MESSAGES/parted.mo
/usr/share/locale/sl/LC_MESSAGES/parted.mo
/usr/share/locale/sr/LC_MESSAGES/parted.mo
/usr/share/locale/sv/LC_MESSAGES/parted.mo
/usr/share/locale/tr/LC_MESSAGES/parted.mo
/usr/share/locale/uk/LC_MESSAGES/parted.mo
/usr/share/locale/vi/LC_MESSAGES/parted.mo
/usr/share/locale/zh_CN/LC_MESSAGES/parted.mo
/usr/share/locale/zh_TW/LC_MESSAGES/parted.mo
/usr/share/man/man8/parted.8.gz
/usr/share/man/man8/partprobe.8.gz

References

Summary

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