You dontdon't need to replace youyour package management tool just because a package seems to be missing.
Each package managemetmanagement tool is tightly integrated with its distribution, and this is no different with CentOS. apt is well integrated with Debian and it's derivatesits derivatives, and even if they (Debian, Ubuntu, Mint, Knoppix...) use the same tool for package management, their packages are linked and configured with specific package versions that in some cases will work only with specific dependencies that that distribution has.
What you need is to install the dev package of glib specific for redhat-alike OSs:
yum install glib2-devel.x86_64
The caveat here is that you will have to find an equivalent package, that can have a different name on your distribution. Knowing how to search packages on the distribution you are using is some well spent time on knowledge.
How did i found that this was the name:
[root@ftp ~]# yum search glib2| grep dev
glib2-devel.i686 : A library of handy utility functions
glib2-devel.x86_64 : A library of handy utility functions
spice-glib-devel.i686 : Development files to build Glib2 applications with
spice-glib-devel.x86_64 : Development files to build Glib2 applications with
And showing the package info, you can see that it seems to be the same library dev package:
[root@ftp ~]# yum info glib2-devel.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.brisanet.com.br
* extras: centos.brisanet.com.br
* rpmforge-extras: apt.sw.be
* updates: centos.brisanet.com.br
Available Packages
Name : glib2-devel
Arch : x86_64
Version : 2.28.8
Release : 9.el6
Size : 300 k
Repo : base
Summary : A library of handy utility functions
URL : http://www.gtk.org
License : LGPLv2+
Description : The glib2-devel package includes the header files for the GLib library.
Also, if you are not familiar with package searching, this online tool can help you to find packages on most common Linux Distributions: Linux Packages Search