How To Install libpng.x86_64 on Amazon Linux 2

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

Introduction

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

What is libpng.x86_64

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.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libpng.x86_64.

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

sudo yum -y install libpng.x86_64

How To Uninstall libpng.x86_64 on Amazon Linux 2

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

sudo yum remove libpng.x86_64

libpng.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libpng15.so.15
/usr/lib64/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.x86_64 on Amazon Linux 2 using yum.