Ways to Uninstall or Install apt-cacher Ubuntu 22.04

Updated: October 21, 2022

Apt-cacher performs caching of files requested by apt-get (or other APT clients such as aptitude or synaptic). Apt-cacher can also proxy Debian Bugs SOAP requests for apt-listbugs. It is most useful for local area networks with limited network bandwidth or to reduce multiple large downloads. I will show you how to install apt-cacher on Ubuntu 22.04 in this guide.


  • OS: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install apt-cacher on Ubuntu 22.04

Install apt-cacher Ubuntu 22.04

apt-cacher is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install apt-cacher using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these steps to install apt-cacher on your Ubuntu.

Step 1: Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing the following Linux command:

sudo apt update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install apt-cacher Ubuntu by pasting this command into the terminal and executing it.

sudo apt install apt-cacher

Install apt-cacher using Aptitude

You must run this command to install Aptitude if you haven’t already done so on Ubuntu.

sudo apt -y install aptitude

Then, you can now install apt-cacher by following these steps:

Step 1: Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt-get -y update

Step 2: Start the package installation on Ubuntu 22.04. You can now install apt-cacher Ubuntu by executing this command in the terminal.

sudo aptitude -y install apt-cacher

Uninstall apt-cacher on Ubuntu 22.04

Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a apt-cacher.

This command can be used to uninstall apt-cacher from Ubuntu 22.04 if it was installed using APT or Aptitude.

sudo apt remove --auto-remove apt-cacher

If you want to uninstall apt-cacher and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge apt-cacher


In this guide, I showed you ways to install apt-cacher on Ubuntu 22.04 and some ways to uninstall apt-cacher too. Please contact me if you require any assistance. I’d be delighted to respond.