Version 1 (modified by trac, 12 years ago) (diff)


Many RPMs rebuild are not available for RHEL, here is a rough guide on rebuilding RPMs for RHEL.


Nvidia and ATI drivers and kernel modules has an excellent guide at

For RHEL4 use FC3 SRPMs from;O=D

adduser machbuild
up2date qt-devel kernel-devel kernel-hugemem-devel
su - machbuild
# get the driver and src
mkdir driver
mkdir srpm
mv ati-fglrx- driver/
mv ati-fglrx- srpm/
rpm -Uhv /home/machbuild/driver/*rpm
rpm -Uhv /home/machbuild/latest/kernel-module*rpm

The script does this:

NNAME="$(date +%Y%m%d)-$(uname -r)"
rpm -ihv srpm/*rpm
rpmbuild -ba rpmbuild/SPECS/ati-fglrx.spec --target $(uname -m) --without driverp
mkdir $NNAME
rm -f latest
ln -s $NNAME latest
mv rpmbuild/RPMS/i686/*rpm latest
rm -Rf rpmbuild

Whenever you install a new kernel you should run the script to build the new kernel module. You do not need a new driver each time. X will work without a kernel module, but you will not have DRI support. Check /var/log/Xorg.0.log for a "DRI initialization failed!" message.

After installing the driver if X does not work check /etc/X11/xorg.conf for problems. I've needed to change the DefaultDepth and display Modes to something reasonable (24 and 1280x1024).

JPackage RPMs of Java software

Java is a popular programming language, but since running Java applications usually requires a proprietary interpreter, using Linux as a platform for developing Java applications has been difficult. The JPackage Project aims to make the process simpler.

First import the JPackage RPM key:

rpm --import jpackage.asc

Then, add the JPackage repositories to /etc/sysconfig/rhn/sources

cat >> /etc/sysconfig/rhn/sources <<EOF
yum jpackage16-generic
yum jpackage16-rhes-4

Now you can easily install packages from JPackage. But wait! Jpackage doesn't have permission to distribute Java itself or several other packages, so how do you get those? The answer is the JPackage "non-free" section which provide SRPMs and some small tips on where to get the source files. Often it takes some clicking around on a confusing Sun webpage to find the download. It can be helpful to install the SRPM and see where the build fails just to find out the name of the file you're looking for:

rpmbuild -ba rpmbuild/SPECS/java3d.spec 
error: File /home/brainj3d/rpmbuild/SOURCES/java3d-sdk-1.3.2-linux-i386.bin: No such file or directory

After you find the download, install the SRPM and put the source file in rpmbuild/SOURCES/. Here's an example with Java3d:

rpm -ihv java3d-1.3.2-1jpp.nosrc.rpm
less rpmbuild/SPECS/java3d.spec # find the source, click through agreements, etc.
mv java3d-sdk-1.3.1-linux-i386.bin rpmbuild/SOURCES/
rpmbuild -ba --without javadoc rpmbuild/SPECS/java3d.spec