How To Install polipo on Ubuntu 18.04

In this tutorial we learn how to install polipo on Ubuntu 18.04. polipo is lightweight, caching web proxy

Introduction

In this tutorial we learn how to install polipo on Ubuntu 18.04.

What is polipo

polipo is:

Polipo is a caching web proxy (a web cache) designed to be used by one person or a small group of people. It is similar in spirit to WWWOFFLE, but the implementation techniques are more like the ones used by Squid.

Polipo has some features that are unique among currently available proxies:

o Polipo will use HTTP/1.1 pipelining if it believes that the remote server supports it, whether the incoming requests are pipelined or come in simultaneously on multiple connections (this is more than the simple usage of persistent connections, which is done by e.g. Squid);

o Polipo will cache the initial segment of an instance if the download has been interrupted, and, if necessary, complete it later using Range requests;

o Polipo will upgrade client requests to HTTP/1.1 even if they come in as HTTP/1.0, and up- or downgrade server replies to the client’s capabilities (this may involve conversion to or from the HTTP/1.1 chunked encoding);

o Polipo has fairly complete support for IPv6 (except for scoped (link-local) addresses).

Optionally, Polipo can use a technique known as Poor Man’s Multiplexing to reduce latency.

There are three methods to install polipo on Ubuntu 18.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 polipo Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install polipo using apt-get by running the following command:

sudo apt-get -y install polipo

Install polipo Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install polipo using apt by running the following command:

sudo apt -y install polipo

Install polipo 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 polipo using aptitude by running the following command:

sudo aptitude -y install polipo

How To Uninstall polipo on Ubuntu 18.04

To uninstall only the polipo package we can use the following command:

sudo apt-get remove polipo

Uninstall polipo And Its Dependencies

To uninstall polipo and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove polipo

Remove polipo Configurations and Data

To remove polipo configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge polipo

Remove polipo configuration, data, and all of its dependencies

We can use the following command to remove polipo configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge polipo

References

Summary

In this tutorial we learn how to install polipo package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.