[CentOS] Centos5 compatibilities

Wed Apr 18 02:02:16 UTC 2007
Jay Lee <jlee at pbu.edu>

Rodrigo Barbosa wrote:
> On Tue, Apr 17, 2007 at 05:17:00PM -0700, centos at 911networks.com wrote:
>> When I am looking for a package that does not exist under rhel5,
>> is it better to get rhel4 or fc6?
> Get RHEL5 and install the fc6 package on it.

Or better yet, grab the FC6 SRPM and recompile it on your RHEL5/FC6 to 
be sure all your shared libraries, etc match.  Very simple to setup and 
perform as a non-root user:

#configure your non-root user's rpm build environment

    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

#build the rpm against your installed platform

    rpmbuild --rebuild your-fc6.src.rpm