cryptic
22nd September 2006, 21:00
As there are quite a few people on here with CentOS boxes with an older zlib (1.2.1x), this quick and simple HowTO will show you how to create an rpm to upgrade zlib.
First, get gcc if you don't have it already:
'yum install gcc'
Next, you will need rpm-build:
'yum install rpm-build'
Now, grab the source rpm for zlib 1.2.3 from the Fedora 5 repos:
'wget ftp://chuck.ucs.indiana.edu/pub/array2/linux/fedora/linux/core/5/source/SRPMS/zlib-1.2.3-1.2.1.src.rpm'
Build the rpm with 'rpmbuild --rebuild zlib-1.2.3-1.2.1.src.rpm'
Now upgrade with the newly created rpms (zlib and zlib-devel):
'rpm -Uhv /usr/src/redhat/RPMS/i386/zlib-*1.2.3-1.2.1.i386.rpm'
Done.
# rpm -q zlib
zlib-1.2.3-1.2.1
First, get gcc if you don't have it already:
'yum install gcc'
Next, you will need rpm-build:
'yum install rpm-build'
Now, grab the source rpm for zlib 1.2.3 from the Fedora 5 repos:
'wget ftp://chuck.ucs.indiana.edu/pub/array2/linux/fedora/linux/core/5/source/SRPMS/zlib-1.2.3-1.2.1.src.rpm'
Build the rpm with 'rpmbuild --rebuild zlib-1.2.3-1.2.1.src.rpm'
Now upgrade with the newly created rpms (zlib and zlib-devel):
'rpm -Uhv /usr/src/redhat/RPMS/i386/zlib-*1.2.3-1.2.1.i386.rpm'
Done.
# rpm -q zlib
zlib-1.2.3-1.2.1