How to Install Squid on CentOS 6.3

Share this Article :

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 :

[[email protected] ~]# yum install squid -y

Example :

[[email protected] ~]# yum install squid -y
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: mirror1.ku.ac.th
 * extras: mirror.yourconnect.com
 * updates: mirror1.ku.ac.th
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
====================================================================================================
Installing:
 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

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

Complete!

Start Squid :

[[email protected] ~]# service squid start
Starting squid: .                                          [  OK  ]

Check Squid status :

[[email protected] ~]# service squid status
squid (pid  11806) is running...

Leave a Reply