Sometimes linux RPM damaged by default which comes with the build or OS.
Below is the example of reuilding syslinux rmp, so in that case we follow step as below:
We have to download the latest version of syslinux and build the rpm cause there are some bugs in the existing version that ships with centos.
{download syslinux}
cd /root
wget http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-3.86.tar.gz
1.extract
-------------------------------------------------------------------------
#tar -zxvf syslinux-3.86.tar.gz
#cp syslinux-3.86/syslinux.spec /usr/src/redhat/SPECS/
#cp syslinux-3.86.tar.gz /usr/src/redhat/SOURCES
2.Now building the rpm>
-------------------->
cd /usr/src/redhat/SPECS
#sed -i 's/BuildPrereq: nasm >= 2.03, perl/BuildPrereq: perl/g' /usr/src/redhat/SPECS/syslinux.spec
#rpmbuild -ba syslinux.spec
3.Installing rpm
-------------->
cd /usr/src/redhat/RPMS/i386
rpm -Uvh syslinux-3.86-1.i386.rpm
Below is the example of reuilding syslinux rmp, so in that case we follow step as below:
We have to download the latest version of syslinux and build the rpm cause there are some bugs in the existing version that ships with centos.
{download syslinux}
cd /root
wget http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-3.86.tar.gz
1.extract
-------------------------------------------------------------------------
#tar -zxvf syslinux-3.86.tar.gz
#cp syslinux-3.86/syslinux.spec /usr/src/redhat/SPECS/
#cp syslinux-3.86.tar.gz /usr/src/redhat/SOURCES
2.Now building the rpm>
-------------------->
cd /usr/src/redhat/SPECS
#sed -i 's/BuildPrereq: nasm >= 2.03, perl/BuildPrereq: perl/g' /usr/src/redhat/SPECS/syslinux.spec
#rpmbuild -ba syslinux.spec
3.Installing rpm
-------------->
cd /usr/src/redhat/RPMS/i386
rpm -Uvh syslinux-3.86-1.i386.rpm
No comments:
Post a Comment