How to Install Squid on CentOS 6.3

This post cover the simple steps to install Squid on CentOS 6.3. Squid service plays two main roles which mainly act as a caching proxy server between the user and the web. Second role, squid also regularly used as a content accelerator, or reverse proxy, intercepting requests to a server and using a cached version of the page to serve the request. Execute the following command to install squid :

[root@centos63 ~]# yum install squid -y

Example :

[root@centos63 ~]# yum install squid -y
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base:
 * extras:
 * updates:
CentOS6.3-Repository                                                         | 4.0 kB     00:00 ...
CentOS6.3-Repository/primary_db                                              | 3.5 MB     00:00 ...
base                                                                         | 3.7 kB     00:00
base/primary_db                                                              | 3.5 MB     00:31
extras                                                                       | 3.0 kB     00:00
extras/primary_db                                                            | 6.4 kB     00:00
updates                                                                      | 3.5 kB     00:00
updates/primary_db                                                           | 2.2 MB     00:19
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package squid.i686 7:3.1.10-1.el6_2.4 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package         Arch           Version                        Repository                      Size
 squid           i686           7:3.1.10-1.el6_2.4             CentOS6.3-Repository           1.7 M

Transaction Summary
Install       1 Package(s)

Total download size: 1.7 M
Installed size: 5.7 M
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 1.7 M
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : 7:squid-3.1.10-1.el6_2.4.i686                                                    1/1
  Verifying  : 7:squid-3.1.10-1.el6_2.4.i686                                                    1/1

  squid.i686 7:3.1.10-1.el6_2.4


Start Squid :

[root@centos63 ~]# service squid start
Starting squid: .                                          [  OK  ]

Check Squid status :

[root@centos63 ~]# service squid status
squid (pid  11806) is running...

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>