How To Install partclone on CentOS 8

partclone is Utility to clone and restore a partition

Introduction

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

What is partclone

Partclone provides utilities to clone and restore used blocks on a partition and is designed for higher compatibility of the file system by using existing libraries, e.g. e2fslibs is used to read and write the ext2 partition.

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

Install partclone 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 partclone using dnf by running the following command:

sudo dnf -y install partclone

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

sudo yum -y install partclone

How To Uninstall partclone on CentOS 8

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

sudo dnf remove partclone

partclone Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/33
/usr/lib/.build-id/33/94b33149642a0534b9e9203694fc8421e98f22
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/b374c3993c2dc5d8d4c5525c25da77d2bbbe3a
/usr/lib/.build-id/65
/usr/lib/.build-id/65/4164d3a43c518ba3e46bf9d7525c0ca45de113
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/5c65a9dfb990a52b9e49ca0019698a8cfdb716
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/f6927c017fc86704765ed9c48d4d9f90146f4a
/usr/lib/.build-id/93
/usr/lib/.build-id/93/a0018efae542f62b59839b13c4b74191be38b2
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/1712b6f8b72d867e682b8d9e449eebd46961c1
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/aecdf03c3dbe9b9e44d65289b1835ad63982bb
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/8be099d5c3d6dbf2f2d0f8d520607e13f54898
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/d867c5ca89f7f3484a507e49c0c513470de50c
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/6ad1254e6c0450f867b4784710da1145f4daed
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/875d1ac5db688491c8eef0f51615e53568c424
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/4df045e9227b65b6a8b0f023200dd4e80a669e
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/a78593a4a3459f6dc0d1572f21ba7929c3e99c
/usr/sbin/partclone.btrfs
/usr/sbin/partclone.chkimg
/usr/sbin/partclone.dd
/usr/sbin/partclone.ext2
/usr/sbin/partclone.ext3
/usr/sbin/partclone.ext4
/usr/sbin/partclone.ext4dev
/usr/sbin/partclone.extfs
/usr/sbin/partclone.f2fs
/usr/sbin/partclone.fat
/usr/sbin/partclone.fat12
/usr/sbin/partclone.fat16
/usr/sbin/partclone.fat32
/usr/sbin/partclone.hfs+
/usr/sbin/partclone.hfsp
/usr/sbin/partclone.hfsplus
/usr/sbin/partclone.imager
/usr/sbin/partclone.info
/usr/sbin/partclone.minix
/usr/sbin/partclone.ntfs
/usr/sbin/partclone.ntfsfixboot
/usr/sbin/partclone.ntfsreloc
/usr/sbin/partclone.restore
/usr/sbin/partclone.vfat
/usr/sbin/partclone.xfs
/usr/share/doc/partclone
/usr/share/doc/partclone/AUTHORS
/usr/share/doc/partclone/ChangeLog
/usr/share/licenses/partclone
/usr/share/licenses/partclone/COPYING
/usr/share/locale/fr_FR/LC_MESSAGES/partclone.mo
/usr/share/locale/pt_BR/LC_MESSAGES/partclone.mo
/usr/share/locale/vi/LC_MESSAGES/partclone.mo
/usr/share/locale/zh_CN/LC_MESSAGES/partclone.mo
/usr/share/locale/zh_TW/LC_MESSAGES/partclone.mo
/usr/share/man/man8/partclone.8.gz
/usr/share/man/man8/partclone.btrfs.8.gz
/usr/share/man/man8/partclone.chkimg.8.gz
/usr/share/man/man8/partclone.dd.8.gz
/usr/share/man/man8/partclone.ext2.8.gz
/usr/share/man/man8/partclone.ext3.8.gz
/usr/share/man/man8/partclone.ext4.8.gz
/usr/share/man/man8/partclone.ext4dev.8.gz
/usr/share/man/man8/partclone.extfs.8.gz
/usr/share/man/man8/partclone.f2fs.8.gz
/usr/share/man/man8/partclone.fat.8.gz
/usr/share/man/man8/partclone.fat12.8.gz
/usr/share/man/man8/partclone.fat16.8.gz
/usr/share/man/man8/partclone.fat32.8.gz
/usr/share/man/man8/partclone.hfs+.8.gz
/usr/share/man/man8/partclone.hfsp.8.gz
/usr/share/man/man8/partclone.hfsplus.8.gz
/usr/share/man/man8/partclone.imager.8.gz
/usr/share/man/man8/partclone.info.8.gz
/usr/share/man/man8/partclone.minix.8.gz
/usr/share/man/man8/partclone.ntfs.8.gz
/usr/share/man/man8/partclone.ntfsfixboot.8.gz
/usr/share/man/man8/partclone.ntfsreloc.8.gz
/usr/share/man/man8/partclone.restore.8.gz
/usr/share/man/man8/partclone.vfat.8.gz
/usr/share/man/man8/partclone.xfs.8.gz
/usr/share/partclone
/usr/share/partclone/fail-mbr.bin

References

Summary

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