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

In this tutorial we learn how to install zlib-devel.x86_64 in Amazon Linux 2. zlib-devel.x86_64 is Header files and libraries for Zlib development

Introduction

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

What is zlib-devel.x86_64

The zlib-devel package contains the header files and libraries needed to develop programs that use the zlib compression and decompression library.

We can use yum to install zlib-devel.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-devel.x86_64.

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

sudo yum -y install zlib-devel.x86_64

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

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

sudo yum remove zlib-devel.x86_64

zlib-devel.x86_64 Package Contents on Amazon Linux 2

/usr/include/zconf.h
/usr/include/zlib.h
/usr/lib64/libz.so
/usr/lib64/pkgconfig/zlib.pc
/usr/share/doc/zlib-devel-1.2.7
/usr/share/doc/zlib-devel-1.2.7/README
/usr/share/doc/zlib-devel-1.2.7/algorithm.txt
/usr/share/doc/zlib-devel-1.2.7/example.c
/usr/share/man/man3/zlib.3.gz

References

Summary

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