How To Install xz.x86_64 on Amazon Linux 2

In this tutorial we learn how to install xz.x86_64 in Amazon Linux 2. xz.x86_64 is LZMA compression utilities

Introduction

In this tutorial we learn how to install xz.x86_64 on Amazon Linux 2.

What is xz.x86_64

XZ Utils are an attempt to make LZMA compression easy to use on free (as in freedom) operating systems. This is achieved by providing tools and libraries which are similar to use than the equivalents of the most popular existing compression algorithms. LZMA is a general purpose compression algorithm designed by Igor Pavlov as part of 7-Zip. It provides high compression ratio while keeping the decompression speed fast.

We can use yum to install xz.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install xz.x86_64.

Install xz.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install xz.x86_64 using yum by running the following command:

sudo yum -y install xz.x86_64

How To Uninstall xz.x86_64 on Amazon Linux 2

To uninstall only the xz.x86_64 package we can use the following command:

sudo yum remove xz.x86_64

xz.x86_64 Package Contents on Amazon Linux 2

/usr/bin/unxz
/usr/bin/xz
/usr/bin/xzcat
/usr/bin/xzcmp
/usr/bin/xzdec
/usr/bin/xzdiff
/usr/bin/xzegrep
/usr/bin/xzfgrep
/usr/bin/xzgrep
/usr/bin/xzless
/usr/bin/xzmore
/usr/share/doc/xz-5.2.2
/usr/share/doc/xz-5.2.2/AUTHORS
/usr/share/doc/xz-5.2.2/COPYING
/usr/share/doc/xz-5.2.2/COPYING.GPLv2
/usr/share/doc/xz-5.2.2/COPYING.GPLv3
/usr/share/doc/xz-5.2.2/COPYING.LGPLv2.1
/usr/share/doc/xz-5.2.2/ChangeLog
/usr/share/doc/xz-5.2.2/NEWS
/usr/share/doc/xz-5.2.2/README
/usr/share/doc/xz-5.2.2/THANKS
/usr/share/doc/xz-5.2.2/TODO
/usr/share/man/man1/unxz.1.gz
/usr/share/man/man1/xz.1.gz
/usr/share/man/man1/xzcat.1.gz
/usr/share/man/man1/xzcmp.1.gz
/usr/share/man/man1/xzdec.1.gz
/usr/share/man/man1/xzdiff.1.gz
/usr/share/man/man1/xzegrep.1.gz
/usr/share/man/man1/xzfgrep.1.gz
/usr/share/man/man1/xzgrep.1.gz
/usr/share/man/man1/xzless.1.gz
/usr/share/man/man1/xzmore.1.gz

References

Summary

In this tutorial we learn how to install xz.x86_64 on Amazon Linux 2 using yum.