Squid on CentOS

Pre-Built Binary Packages

Squid 2.6 apparently bundles with CentOS. However there is apparently no publicly available information about where to find the packages or who is bundling them. DAG and RPMforge repositories appear to no longer contain any files. Other sources imply that CentOS is an alias for RHEL (we know otherwise). Although, yes, the RHEL packages should work on CentOS.

Maintainer: unknown

Bug Reporting: http://bugs.centos.org/search.php?category=squid&sortby=last_updated&hide_status_id=-2

Eliezer: 20/Sep/2014 - I have not tested yet the CentOS 7 build and the file on the server is not for public usage.

Squid-3.5 beta

  • Maintainer: Unofficial packages built by Eliezer Croitoru which can be used on CentOS

The RPMs was separated into three files:

- squid-VERSION.rpm

- squid-helpers-VERSION.rpm

- squid-debuginfo-VERSION.rpm

The core squid rpm will provide the basic squid forward, intercept and tproxy modes while also allowing ssl-bump. The helpers package contains all sorts of other helpers which are bundled with squid sources but are not essential for a basic and simple proxy.

- src rpm files are at: http://www1.ngtech.co.il/rpm/centos/6/SRPMS/

[squid]
name=Squid beta repo for CentOS Linux 6 - $basearch
#IL mirror
baseurl=http://www1.ngtech.co.il/repo/centos/6/beta/$basearch/
failovermethod=priority
enabled=1
gpgcheck=0

Install Procedure:

yum update
yum install squid

Squid-3.4

  • Maintainer: Unofficial packages built by Eliezer Croitoru which can be used on CentOS

Eliezer: As of 3.4.0.2 I release the squid RPM for two CPU classes OS, i686 and x86_64.

Since somewhere in the 3.4 tree there was a change in the way the squid was packaged by me.

The RPMs was separated into three files:

- squid-VERSION.rpm

- squid-helpers-VERSION.rpm

- squid-debuginfo-VERSION.rpm

The core squid rpm will provide the basic squid forward, intercept and tproxy modes while also allowing ssl-bump. The helpers package contains all sorts of other helpers which are bundled with squid sources but are not essential for a basic and simple proxy.

There are couple issues that needs to be fixed since there was some data loss in the transition from old server to another.

- The init.d script, I am working on it in my spare time.

- src rpm files are at: http://www1.ngtech.co.il/rpm/centos/6/SRPMS/

[squid]
name=Squid repo for CentOS Linux 6 - $basearch
#IL mirror
baseurl=http://www1.ngtech.co.il/rpm/centos/6/$basearch
failovermethod=priority
enabled=1
gpgcheck=0

Install Procedure:

yum update
yum install squid

Squid-3.3

  • Maintainer: Unofficial packages built by Eliezer Croitoru which can be used on CentOS

[squid]
name=Squid repo for CentOS Linux 6 - $basearch
#IL mirror
baseurl=http://www1.ngtech.co.il/rpm/centos/6/$basearch
failovermethod=priority
enabled=1
gpgcheck=0

Install Procedure:

yum update
yum install squid
  • {i} Eliezer: a nice build from a friend that is hosted on SUSE servers.

at: http://software.opensuse.org/download.html?project=home%3Aairties%3Aserver&package=squid3

cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/home:airties:server/CentOS_CentOS-6/home:airties:server.repo
yum install squid3

Squid-2.6

Install Procedure:

yum install squid

Potentially missing OS resources (libs\software)

There are couple dependencies that CentOS might need but cannot be installed by "yum install" yet..

One of the dependencies I have seen are:

"Crypt::X509" which is a perl module that is not in the basic repos of centos.

In order to install it use cpan.

# cpan
> install Crypt::X509

The above is not included in squid RPM but might be in other repos which I do not support.

troubleshooting SSL: first install the libs the see what happens.

Compiling

# You will need the usual build chain
yum install -y perl gcc autoconf automake make sudo wget

# and some extra packages
yum install libxml2-devel libcap-devel

# to bootstrap and build from bzr needs also the packages
yum install libtool-ltdl-devel

The following ./configure options install Squid into the CentOS structure properly:

  --prefix=/usr
  --includedir=/usr/include
  --datadir=/usr/share
  --bindir=/usr/sbin
  --libexecdir=/usr/lib/squid
  --localstatedir=/var
  --sysconfdir=/etc/squid

Troubleshooting


CategoryKnowledgeBase SquidFaq/BinaryPackages

KnowledgeBase/CentOS (last edited 2014-11-18 21:35:48 by Eliezer Croitoru)