How To Install squid on Ubuntu 20.04
Introduction
In this tutorial we learn how to install squid
on Ubuntu 20.04.
What is squid
squid is:
Squid is a high-performance proxy caching server for web clients, supporting FTP, gopher, ICY and HTTP data objects.
Package: squid Architecture: amd64 Version: 4.10-1ubuntu1 Priority: optional Section: web Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Luigi Gangitano [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 8586 Provides: squid3 Pre-Depends: adduser Depends: libc6 (>= 2.29), libcap2 (>= 1:2.10), libcom-err2 (>= 1.43.9), libdb5.3, libecap3 (>= 1.0.1), libexpat1 (>= 2.0.1), libgcc-s1 (>= 3.0), libgnutls30 (>= 3.6.6), libgssapi-krb5-2 (>= 1.17), libkrb5-3 (>= 1.10+dfsg~), libldap-2.4-2 (>= 2.4.7), libltdl7 (>= 2.4.6), libnetfilter-conntrack3 (>= 1.0.7), libnettle7, libpam0g (>= 0.99.7.1), libsasl2-2 (>= 2.1.27+dfsg), libstdc++6 (>= 9), libxml2 (>= 2.7.4), netbase, logrotate (>= 3.5.4-1), squid-common (>= 4.10-1ubuntu1), lsb-base, libdbi-perl, ssl-cert Recommends: libcap2-bin, ca-certificates Suggests: squidclient, squid-cgi, squid-purge, resolvconf (>= 0.40), smbclient, ufw, winbind, apparmor Filename: pool/main/s/squid/squid_4.10-1ubuntu1_amd64.deb Size: 2556280 MD5sum: 7b8b5c88b6155ff68189eafca124bf43 SHA1: 882b5125bdaff66f54590c6e405b2bffeea7d8af SHA256: 0b9834d75fb8bd19469e1ca1c2706a3fba02c378dd5929b2177d221283a1db26 Homepage: http://www.squid-cache.org Description-en: Full featured Web Proxy cache (HTTP proxy) Squid is a high-performance proxy caching server for web clients, supporting FTP, gopher, ICY and HTTP data objects.
There are three methods to install squid
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install squid Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install squid
using apt-get
by running the following command:
sudo apt-get -y install squid
Install squid Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install squid
using apt
by running the following command:
sudo apt -y install squid
Install squid Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install squid
using aptitude
by running the following command:
sudo aptitude -y install squid
How To Uninstall squid on Ubuntu 20.04
To uninstall only the squid
package we can use the following command:
sudo apt-get remove squid
Uninstall squid And Its Dependencies
To uninstall squid
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove squid
Remove squid Configurations and Data
To remove squid
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge squid
Remove squid configuration, data, and all of its dependencies
We can use the following command to remove squid
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge squid
References
Summary
In this tutorial we learn how to install squid
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.