Building RPMs for Squid, SquidGuard


Get a few dependencies to get the ball rolling:

yum -y groupinstall “Development Tools”
yum -y install rpm-build openjade linuxdoc-tools openldap-devel pam-devel openssl-devel httpd rpm-devel expat-devel db4-devel libpcap-devel

Browse and find the latest Source RPM for your architecture, then install the sprm e.g.

rpm -ivh squid*.src.rpm

This does not actually install the rpm but puts the source files under: /usr/src/redhat

So the spec file we need to build the package will be at: /usr/src/redhat/SPECS/squid.spec

We can then build the rpm with:

rpmbuild –bb squid.spec

This builds the rpm and places it in /usr/src/redhat/RPMS/ which you can install as normal with rpm -Uvh squid*.rpm


I wanted to use the ldap functionality of squidGuard version 1.4 so. There is a shell script to make and build a squidguard 1.4 rpm with ldap support at the following address:



One Response to “Building RPMs for Squid, SquidGuard”

  1. Squidblacklist is the worlds leading publisher of native acl
    blacklists tailored specifically for Squid proxy, and alternative formats for all major third party plugins as well as
    many other filtering platforms. Including SquidGuard, DansGuardian, and ufDBGuard, as well as pfSense and more.

    There is room for better blacklists, we intend to fill that gap.

    It would be our pleasure to serve you.


    Benjamin E. Nichols


Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>