1. Install the apt – get p>
step1:
curl https://raw.githubusercontent.com/dvershinin/apt-get-centos/master/apt-get.sh -o /usr/local/bin/apt-get
step2:
chmod 0755 /usr/local/bin/apt-get
2. Install the PKG – config p>
download the version you want
https://pkg-config.freedesktop.org/releases/
2. p> installation
tar xf tar xf pkg-config-0.29.2.tar.gz
cd pkg-config-0.29.2
./configure --with-internal-glib
make
make check
make install
(3) verify p>
which pkg-config