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.
- Download the Squid source RPM from the main squid RPM page
- As root, install the source RPM with the following command
line:
# rpm -Uvh squid-M.m.p-r.src.rpm
- Change to the SPEC directory like so:
# cd /usr/src/redhat/SPECS
- Compile the squid RPM with this command:
# rpm -ba squid-M.m.p-r.spec
- Get a cup of tea, this should take a few minutes
- Change to the RPMS directory:
# cd /usr/src/redhat/RPMS/i386
- Shutdown any running instances of squid:
# /etc/rc.d/init.d/squid stop
- Install your brand new squid RPM:
# rpm -Uvh squid-M.m.p-r.i386.rpm
- Restart the squid process:
# /etc/rc.d/init.d/squid start
Thats all there is to it!
Comments? Corrections? Feedback!.
Thanks!
|