How To Install duplicity on CentOS 7

In this tutorial we learn how to install duplicity on CentOS 7. duplicity is Encrypted bandwidth-efficient backup using rsync algorithm

Introduction

In this tutorial we learn how to install duplicity on CentOS 7.

What is duplicity

Duplicity incrementally backs up files and directory by encrypting tar-format volumes with GnuPG and uploading them to a remote (or local) file server. In theory many protocols for connecting to a file server could be supported; so far ssh/scp, local file access, rsync, ftp, HSI, WebDAV and Amazon S3 have been written. Because duplicity uses librsync, the incremental archives are space efficient and only record the parts of files that have changed since the last backup. Currently duplicity supports deleted files, full unix permissions, directories, symbolic links, fifos, device files, but not hard links.

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

Install duplicity on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install duplicity

Install duplicity on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install duplicity

How To Uninstall duplicity on CentOS 7

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

sudo dnf remove duplicity

References

Summary

In this tutorial we learn how to install duplicity on CentOS 7 using yum and dnf.