How To Install snappy.x86_64 on Amazon Linux 2

In this tutorial we learn how to install snappy.x86_64 in Amazon Linux 2. snappy.x86_64 is Fast compression and decompression library

Introduction

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

What is snappy.x86_64

Snappy is a compression/decompression library. It does not aim for maximum compression, or compatibility with any other compression library; instead, it aims for very high speeds and reasonable compression. For instance, compared to the fastest mode of zlib, Snappy is an order of magnitude faster for most inputs, but the resulting compressed files are anywhere from 20% to 100% bigger.

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

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

sudo yum -y install snappy.x86_64

How To Uninstall snappy.x86_64 on Amazon Linux 2

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

sudo yum remove snappy.x86_64

snappy.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libsnappy.so.1
/usr/lib64/libsnappy.so.1.1.4
/usr/share/doc/snappy-1.1.0
/usr/share/doc/snappy-1.1.0/AUTHORS
/usr/share/doc/snappy-1.1.0/COPYING
/usr/share/doc/snappy-1.1.0/ChangeLog
/usr/share/doc/snappy-1.1.0/NEWS
/usr/share/doc/snappy-1.1.0/README

References

Summary

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