How To Install parted on Rocky Linux 8

In this tutorial we learn how to install parted on Rocky Linux 8. parted is The GNU disk partition manipulation program

Introduction

In this tutorial we learn how to install parted on Rocky Linux 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.

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

Install parted on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install parted

Install parted on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 Rocky Linux 8

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

sudo dnf remove parted

parted Package Contents on Rocky Linux 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/13
/usr/lib/.build-id/13/4f4d8511568936644b4eb2aeb9936b1ade4a64
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/71f74b2d6e1e34ac262a6c006c14a92967ef16
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/4626b452f507e8d118d531f1358f289d4d71fb
/usr/lib/.build-id/98
/usr/lib/.build-id/98/2769d886335664956d1c91224a59ea132034d8
/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/07
/usr/lib/.build-id/07/c07182d30c48440332e995115c887a40f8b834
/usr/lib/.build-id/69
/usr/lib/.build-id/69/7a9e79fcefe14c1c66c7c7b35416bef614795a
/usr/lib/.build-id/b9
/usr/lib/.build-id/b9/8100e1cccf8eddd994c2fc98caea14241c8fb9
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/735ca0b62092b024712cdb9ef7bcb2bfaf4091
/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 Rocky Linux 8 using yum and dnf.