Compiling the Squid RPM Last Modified: 1999/07/08
This is a step by step guide to compiling the source RPM. For more information about the squid RPM please check the main squid RPM page.

This document assumes you have the development tools from the redhat distribution installed.

In this document M.m.p-r refers to the version number of squid that you downloaded. M is the major version number, m is the minor version number, p is the patchlevel and r is the RPM release.

  1. Download the Squid source RPM from the main squid RPM page

  2. As root, install the source RPM with the following command line:
    # rpm -Uvh squid-M.m.p-r.src.rpm
  3. Change to the SPEC directory like so:
    # cd /usr/src/redhat/SPECS
  4. Compile the squid RPM with this command:
    # rpm -ba squid-M.m.p-r.spec
  5. Get a cup of tea, this should take a few minutes

  6. Change to the RPMS directory:
    # cd /usr/src/redhat/RPMS/i386
  7. Shutdown any running instances of squid:
    # /etc/rc.d/init.d/squid stop
  8. Install your brand new squid RPM:
    # rpm -Uvh squid-M.m.p-r.i386.rpm
  9. Restart the squid process:
    # /etc/rc.d/init.d/squid start
Thats all there is to it!

Comments? Corrections? Feedback!. Thanks!