Main > Reference Manual > Download and install > Installing on Linux, Unix and Cygwin > Build instructions > Build instructions for Red Hat-based linux systems

Fedora, Red Hat Enterprise Linux, CentOS, Suse, Mandriva... are Linux distributions using the RPM format to package software.

  • Install the rpmbuild package
  • Create a build directory structure.
   mkdir /home/your_userid/rpm 
   mkdir /home/your_userid/rpm/SOURCES 
   mkdir /home/your_userid/rpm/SPECS    
   mkdir /home/your_userid/rpm/BUILD    
   mkdir /home/your_userid/rpm/SRPMS
   mkdir -p /home/your_userid/rpm/RPMS/i386
  • Mark this new directory tree as the build environment by putting this line in a file called .rpmmacros in your home directory:
    %_topdir /home/your_userid/rpm
  • Install the source rpm file:
    rpm -i frepple-0.9.2-1.src.rpm
This will create files in the SOURCES directory of your RPM building directory tree, and a .spec file in the SPECS directory.
  • Go the SPECS directory and give the command to build the RPM:
   cd /home/your_userid/rpm/SPECS
   rpmbuild -bb frepple.spec