How To Install libxdiff on Fedora 34

libxdiff is Basic functionality to create difference/patches in binary and text Basic functionality to create difference/patches in binary and text

Introduction

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

What is libxdiff

The LibXDiff library implements basic and yet complete functionalities to create file differences/patches to both binary and text files. The library uses memory files as file abstraction to achieve both performance and portability. For binary files, LibXDiff implements both (with some modification) the algorithm described in File System Support for Delta Compression by Joshua P. MacDonald, and the algorithm described in Fingerprinting By Random Polynomials by Michael O. Rabin. While for text files it follows directives described in An O(ND) Difference Algorithm and Its Variations by Eugene W. Myers. This is a merged fork of the forks of the original libxdiff (0.23) found in the git and libgit2 source code, converted into a shared library. libxdiff 1.0 18.fc34 x86_64 38 k libxdiff-1.0-18.fc34.src.rpm fedora Basic functionality to create difference/patches in binary and text https LGPLv2+ The LibXDiff library implements basic and yet complete functionalities to create file differences/patches to both binary and text files. The library uses memory files as file abstraction to achieve both performance and portability. For binary files, LibXDiff implements both (with some modification) the algorithm described in File System Support for Delta Compression by Joshua P. MacDonald, and the algorithm described in Fingerprinting By Random Polynomials by Michael O. Rabin. While for text files it follows directives described in An O(ND) Difference Algorithm and Its Variations by Eugene W. Myers. This is a merged fork of the forks of the original libxdiff (0.23) found in the git and libgit2 source code, converted into a shared library.

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

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

sudo dnf -y install libxdiff

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

sudo yum -y install libxdiff

How To Uninstall libxdiff on Fedora 34

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

sudo dnf remove libxdiff

libxdiff Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/3a
/usr/lib/.build-id/3a/b796073696f8b62d40d0e4a1d0ebd1480b0663
/usr/lib/libxdiff.so.1
/usr/lib/libxdiff.so.1.0.0
/usr/share/doc/libxdiff
/usr/share/doc/libxdiff/AUTHORS
/usr/share/doc/libxdiff/COPYING
/usr/share/doc/libxdiff/ChangeLog
/usr/share/doc/libxdiff/NEWS
/usr/share/doc/libxdiff/README.md
/usr/lib/.build-id
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/55be7d487dfdec9d21b567e137502d19b4e76d
/usr/lib64/libxdiff.so.1
/usr/lib64/libxdiff.so.1.0.0
/usr/share/doc/libxdiff
/usr/share/doc/libxdiff/AUTHORS
/usr/share/doc/libxdiff/COPYING
/usr/share/doc/libxdiff/ChangeLog
/usr/share/doc/libxdiff/NEWS
/usr/share/doc/libxdiff/README.md

References

Summary

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