If we are compiling Dahdi, Asterisk, etc., from source, should we enable the ATrpms repo at all?
By default the
base and
updates repo are set to:
exclude=kernel kernel-smp kernel-xenU mkinitrd mdadm initscripts
as seen in the file:
/etc/yum.smerepos.d/sme-base.repo
For compiling Asterisk and others, we need to do the following:
yum install gcc gcc-c++ ncurses-devel kernel-devel
This results in the current kernel being:
# uname -r
2.6.9-89.0.16.EL
And the latest kernel-devel showing up in the updates as:
kernel-devel-2.6.9-89.0.18.EL
To match the running kernel, this requires us to manually install the kernel-devel with:
cd /usr/src
yum install gcc gcc-c++ ncurses-devel
wget http://mirror.centos.org/centos/4/updates/i386/RPMS/kernel-devel-2.6.9-89.0.16.EL.i686.rpm
yum localinstall -y kernel-devel-2.6.9-89.0.16.EL.i686.rpm
and after compilation is over, remove it using:
yum remove gcc gcc-c++ ncurses-devel kernel-devel
to prevent the Update
kernel-devel-2.6.9-89.0.18.EL from showing up.