How To Install zlib-static.x86_64 on Amazon Linux 2

In this tutorial we learn how to install zlib-static.x86_64 in Amazon Linux 2. zlib-static.x86_64 is Static libraries for Zlib development

Introduction

In this tutorial we learn how to install zlib-static.x86_64 on Amazon Linux 2.

What is zlib-static.x86_64

The zlib-static package includes static libraries needed to develop programs that use the zlib compression and decompression library.

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

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

sudo yum -y install zlib-static.x86_64

How To Uninstall zlib-static.x86_64 on Amazon Linux 2

To uninstall only the zlib-static.x86_64 package we can use the following command:

sudo yum remove zlib-static.x86_64

zlib-static.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libz.a
/usr/share/doc/zlib-static-1.2.7
/usr/share/doc/zlib-static-1.2.7/README

References

Summary

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