How To Install pkgconfig.x86_64 on Amazon Linux 2

In this tutorial we learn how to install pkgconfig.x86_64 in Amazon Linux 2. pkgconfig.x86_64 is A tool for determining compilation options

Introduction

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

What is pkgconfig.x86_64

The pkgconfig tool determines compilation options. For each required library, it reads the configuration file and outputs the necessary compiler and linker flags.

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

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

sudo yum -y install pkgconfig.x86_64

How To Uninstall pkgconfig.x86_64 on Amazon Linux 2

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

sudo yum remove pkgconfig.x86_64

pkgconfig.x86_64 Package Contents on Amazon Linux 2

/usr/bin/pkg-config
/usr/lib64/pkgconfig
/usr/share/aclocal/pkg.m4
/usr/share/doc/pkgconfig-0.27.1
/usr/share/doc/pkgconfig-0.27.1/AUTHORS
/usr/share/doc/pkgconfig-0.27.1/COPYING
/usr/share/doc/pkgconfig-0.27.1/NEWS
/usr/share/doc/pkgconfig-0.27.1/README
/usr/share/doc/pkgconfig-0.27.1/pkg-config-guide.html
/usr/share/man/man1/pkg-config.1.gz
/usr/share/pkgconfig

References

Summary

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