How To Install libpng.i686 on Amazon Linux 2

In this tutorial we learn how to install libpng.i686 in Amazon Linux 2. libpng.i686 is A library of functions for manipulating PNG image format files

Introduction

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

What is libpng.i686

The libpng package contains a library of functions for creating and manipulating PNG (Portable Network Graphics) image format files. PNG is a bit-mapped graphics format similar to the GIF format. PNG was created to replace the GIF format, since GIF uses a patented data compression algorithm. Libpng should be installed if you need to manipulate PNG format image files.

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

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

sudo yum -y install libpng.i686

How To Uninstall libpng.i686 on Amazon Linux 2

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

sudo yum remove libpng.i686

libpng.i686 Package Contents on Amazon Linux 2

/usr/lib/libpng15.so.15
/usr/lib/libpng15.so.15.13.0
/usr/share/doc/libpng-1.5.13
/usr/share/doc/libpng-1.5.13/CHANGES
/usr/share/doc/libpng-1.5.13/LICENSE
/usr/share/doc/libpng-1.5.13/README
/usr/share/doc/libpng-1.5.13/TODO
/usr/share/doc/libpng-1.5.13/example.c
/usr/share/doc/libpng-1.5.13/libpng-manual.txt
/usr/share/man/man5/png.5.gz

References

Summary

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