Prvo treba skinuti source pakete najsvežijih courier-authlib i courier-imap servera sa interneta.
Nakon toga:
# yum install rpm-build
# su - username
$ mkdir $HOME/rpm
$ mkdir $HOME/rpm/SOURCES
$ mkdir $HOME/rpm/SPECS
$ mkdir $HOME/rpm/BUILD
$ mkdir $HOME/rpm/SRPMS
$ mkdir $HOME/rpm/RPMS
$ mkdir $HOME/rpm/RPMS/i386
$ echo "%_topdir $HOME/rpm" >> $HOME/.rpmmacros
$ rpmbuild -ta courier-authlib-0.59.3.tar.bz2
$ rpmbuild -ta courier-imap-4.1.3.tar.bz2
# su - username
$ mkdir $HOME/rpm
$ mkdir $HOME/rpm/SOURCES
$ mkdir $HOME/rpm/SPECS
$ mkdir $HOME/rpm/BUILD
$ mkdir $HOME/rpm/SRPMS
$ mkdir $HOME/rpm/RPMS
$ mkdir $HOME/rpm/RPMS/i386
$ echo "%_topdir $HOME/rpm" >> $HOME/.rpmmacros
$ rpmbuild -ta courier-authlib-0.59.3.tar.bz2
$ rpmbuild -ta courier-imap-4.1.3.tar.bz2
Kada se završi build paketa, rpm-ovi će biti sačuvani u /home/username/rpm/RPMS/i386/
Instalacija paketa se vrši na sledeći način:
# rpm -ivh /home/username/rpm/RPMS/i386/courier-authlib-*
# rpm -ivh /home/username/rpm/RPMS/i386/courier-imap-4.1.3-1.i386.rpm
# rpm -ivh /home/username/rpm/RPMS/i386/courier-imap-4.1.3-1.i386.rpm
Download gotovih rpm paketa za CentOS-5 na adresi http://default.co.yu/~ram/download/rpm/
NAPOMENA: Ako na sistemu nemate instaliran GCC i ostale development pakete rpmbuild će javiti grešku o tome koji sve paketi nedostaju. U mom slučaju to su bili:
# yum install gcc openldap-servers openldap-devel gcc-c++ expect pam-devel gdbm-devel \
postgresql-devel mysql-devel zlib-devel libtool libtool-ltdl-devel gamin-devel
postgresql-devel mysql-devel zlib-devel libtool libtool-ltdl-devel gamin-devel
Ako sam nešto zaboravio što bi trebalo da se napiše molim javite. Pozdrav!