How To Install libpng-devel on Rocky Linux 8
Introduction
In this tutorial we learn how to install libpng-devel
on Rocky Linux 8.
What is libpng-devel
The libpng-devel package contains header files and documentation necessary for developing programs using the PNG (Portable Network Graphics) library. If you want to develop programs which will manipulate PNG image format files, you should install libpng-devel. You’ll also need to install the libpng package.
We can use yum
or dnf
to install libpng-devel
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libpng-devel.
Install libpng-devel on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install libpng-devel
using dnf
by running the following command:
sudo dnf -y install libpng-devel
Install libpng-devel on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install libpng-devel
using yum
by running the following command:
sudo yum -y install libpng-devel
How To Uninstall libpng-devel on Rocky Linux 8
To uninstall only the libpng-devel
package we can use the following command:
sudo dnf remove libpng-devel
libpng-devel Package Contents on Rocky Linux 8
/usr/bin/libpng-config
/usr/bin/libpng16-config
/usr/bin/png-fix-itxt
/usr/bin/pngfix
/usr/include/libpng16
/usr/include/libpng16/png.h
/usr/include/libpng16/pngconf.h
/usr/include/libpng16/pnglibconf.h
/usr/include/png.h
/usr/include/pngconf.h
/usr/include/pnglibconf.h
/usr/lib/.build-id
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/b98906e2b56ea79acaa4c5a4bce20a33058a85
/usr/lib/.build-id/67
/usr/lib/.build-id/67/623922e74f410c868427c730551fc0bc9a7d59
/usr/lib64/libpng.so
/usr/lib64/libpng16.so
/usr/lib64/pkgconfig/libpng.pc
/usr/lib64/pkgconfig/libpng16.pc
/usr/share/doc/libpng-devel
/usr/share/doc/libpng-devel/CHANGES
/usr/share/doc/libpng-devel/TODO
/usr/share/doc/libpng-devel/example.c
/usr/share/doc/libpng-devel/libpng-manual.txt
/usr/share/man/man3/libpng.3.gz
/usr/share/man/man3/libpngpf.3.gz
/usr/bin/libpng-config
/usr/bin/libpng16-config
/usr/bin/png-fix-itxt
/usr/bin/pngfix
/usr/include/libpng16
/usr/include/libpng16/png.h
/usr/include/libpng16/pngconf.h
/usr/include/libpng16/pnglibconf.h
/usr/include/png.h
/usr/include/pngconf.h
/usr/include/pnglibconf.h
/usr/lib/.build-id
/usr/lib/.build-id/46
/usr/lib/.build-id/46/62365021cd400a94c76e015be811783dd4514f
/usr/lib/.build-id/56
/usr/lib/.build-id/56/3ab8c394765c85ef5985d4d32059ab58166edc
/usr/lib/libpng.so
/usr/lib/libpng16.so
/usr/lib/pkgconfig/libpng.pc
/usr/lib/pkgconfig/libpng16.pc
/usr/share/doc/libpng-devel
/usr/share/doc/libpng-devel/CHANGES
/usr/share/doc/libpng-devel/TODO
/usr/share/doc/libpng-devel/example.c
/usr/share/doc/libpng-devel/libpng-manual.txt
/usr/share/man/man3/libpng.3.gz
/usr/share/man/man3/libpngpf.3.gz
References
Summary
In this tutorial we learn how to install libpng-devel
on Rocky Linux 8 using yum and dnf.