How To Install librsync on AlmaLinux 8

In this tutorial we learn how to install librsync in AlmaLinux 8. librsync is Rsync remote-delta algorithm library

Introduction

In this tutorial we learn how to install librsync on AlmaLinux 8.

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 AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install librsync.

Install librsync on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install librsync

Install librsync on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install librsync

How To Uninstall librsync on AlmaLinux 8

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 AlmaLinux 8 using yum and dnf.