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

In this tutorial we learn how to install libpng12-devel.x86_64 in Amazon Linux 2. libpng12-devel.x86_64 is Development files for libpng 1.2

Introduction

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

What is libpng12-devel.x86_64

The libpng12-devel package contains header files and documentation necessary for developing programs using libpng12.

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

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

sudo yum -y install libpng12-devel.x86_64

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

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

sudo yum remove libpng12-devel.x86_64

libpng12-devel.x86_64 Package Contents on Amazon Linux 2

/usr/bin/libpng12-config
/usr/include/libpng12
/usr/include/libpng12/png.h
/usr/include/libpng12/pngconf.h
/usr/lib64/libpng12.so
/usr/lib64/pkgconfig/libpng12.pc
/usr/share/doc/libpng12-devel-1.2.50
/usr/share/doc/libpng12-devel-1.2.50/example.c
/usr/share/man/man3/libpng12.3.gz
/usr/share/man/man3/libpngpf12.3.gz

References

Summary

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