How To Install libpng12.i686 on Amazon Linux 2

In this tutorial we learn how to install libpng12.i686 in Amazon Linux 2. libpng12.i686 is Old version of libpng, needed to run old binaries

Introduction

In this tutorial we learn how to install libpng12.i686 on Amazon Linux 2.

What is libpng12.i686

The libpng12 package provides libpng 1.2, an older version of the libpng library for manipulating PNG (Portable Network Graphics) image format files. This version should be used only if you are unable to use the current version of libpng.

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

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

sudo yum -y install libpng12.i686

How To Uninstall libpng12.i686 on Amazon Linux 2

To uninstall only the libpng12.i686 package we can use the following command:

sudo yum remove libpng12.i686

libpng12.i686 Package Contents on Amazon Linux 2

/usr/lib/libpng.so.3
/usr/lib/libpng.so.3.50.0
/usr/lib/libpng12.so.0
/usr/lib/libpng12.so.0.50.0
/usr/share/doc/libpng12-1.2.50
/usr/share/doc/libpng12-1.2.50/CHANGES
/usr/share/doc/libpng12-1.2.50/LICENSE
/usr/share/doc/libpng12-1.2.50/README
/usr/share/doc/libpng12-1.2.50/TODO
/usr/share/doc/libpng12-1.2.50/libpng-1.2.50.txt
/usr/share/man/man5/png12.5.gz

References

Summary

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