How To Install librsync on CentOS 7

In this tutorial we learn how to install librsync on CentOS 7. librsync is Rsync remote-delta algorithm library

Introduction

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

What is librsync

librsync is a library for calculating and applying network deltas, with an interface designed to ease integration into diverse network applications. librsync encapsulates the core algorithms of the rsync protocol, which help with efficient calculation of the differences between two files. The rsync algorithm is different from most differencing algorithms because it does not require the presence of the two files to calculate the delta. Instead, it requires a set of checksums of each block of one file, which together form a signature for that file. Blocks at any in the other file which have the same checksum are likely to be identical, and whatever remains is the difference.

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

Install librsync on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install librsync

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

sudo dnf -y install librsync

How To Uninstall librsync on CentOS 7

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

sudo dnf remove librsync

References

Summary

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