How To Install librsync on Fedora 34

librsync is Rsync remote-delta algorithm library Rsync remote-delta algorithm library

Introduction

In this tutorial we learn how to install librsync on Fedora 34.

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. librsync 2.3.2 1.fc34 x86_64 59 k librsync-2.3.2-1.fc34.src.rpm updates Rsync remote-delta algorithm library https LGPLv2+ 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install librsync.

Install librsync on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install librsync

Install librsync on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 Fedora 34

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

sudo dnf remove librsync

librsync Package Contents on Fedora 34

/usr/bin/rdiff
/usr/lib/.build-id
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/38b07a3919fc2c77d694ae901ba115fb355225
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/061e69c84b4aeeae846b4b40305920d9a41dea
/usr/lib64/librsync.so.2
/usr/lib64/librsync.so.2.3.2
/usr/share/doc/librsync
/usr/share/doc/librsync/AUTHORS
/usr/share/doc/librsync/NEWS.md
/usr/share/doc/librsync/README.md
/usr/share/licenses/librsync
/usr/share/licenses/librsync/COPYING
/usr/share/man/man1/rdiff.1.gz
/usr/bin/rdiff
/usr/lib/.build-id
/usr/lib/.build-id/33
/usr/lib/.build-id/33/ceaa5504d658ba91f4279228b28bca4a1969b2
/usr/lib/.build-id/50
/usr/lib/.build-id/50/e0a94bff6f8f717e492ca920bae252e64d5827
/usr/lib64/librsync.so.2
/usr/lib64/librsync.so.2.3.1
/usr/share/doc/librsync
/usr/share/doc/librsync/AUTHORS
/usr/share/doc/librsync/NEWS.md
/usr/share/doc/librsync/README.md
/usr/share/licenses/librsync
/usr/share/licenses/librsync/COPYING
/usr/share/man/man1/rdiff.1.gz
/usr/bin/rdiff
/usr/lib/.build-id
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/5e2b9bcb3a6774a1b8b98f453f9367fb693f41
/usr/lib/.build-id/83
/usr/lib/.build-id/83/ac4a067c609aae03d116f69ce841052f50c6d6
/usr/lib/librsync.so.2
/usr/lib/librsync.so.2.3.1
/usr/share/doc/librsync
/usr/share/doc/librsync/AUTHORS
/usr/share/doc/librsync/NEWS.md
/usr/share/doc/librsync/README.md
/usr/share/licenses/librsync
/usr/share/licenses/librsync/COPYING
/usr/share/man/man1/rdiff.1.gz
/usr/bin/rdiff
/usr/lib/.build-id
/usr/lib/.build-id/6a
/usr/lib/.build-id/6a/1f83563d60bee7b0b1cb81c832746b7a5fe0c3
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/6af02f31b7194b9bdb789e364a83f4fcd907a6
/usr/lib/librsync.so.2
/usr/lib/librsync.so.2.3.2
/usr/share/doc/librsync
/usr/share/doc/librsync/AUTHORS
/usr/share/doc/librsync/NEWS.md
/usr/share/doc/librsync/README.md
/usr/share/licenses/librsync
/usr/share/licenses/librsync/COPYING
/usr/share/man/man1/rdiff.1.gz

References

Summary

In this tutorial we learn how to install librsync on Fedora 34 using yum and dnf.