How to Install and Uninstall distcc on Ubuntu 22.04

Updated: September 11, 2022

distcc is a program to distribute compilation of C or C++ code across several machines on a network. distcc should always generate the same results as a local compile, is simple to install and use, and is often significantly faster than a local compile. distcc does not require all machines to share a filesystem, have synchronized clocks, or to have the same libraries or header files installed. In this tutorial, I will show you ways to install distcc Ubuntu 22.04.

Requirements

  • OS: distcc needs Ubuntu 22.04 to work
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install distcc on Ubuntu 22.04

Install distcc Ubuntu 22.04

distcc 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 distcc using APT

This is one of the most popular methods for installing Ubuntu packages since it is simple to understand, even if you are a Linux novice. Following these instructions to install distcc on your Ubuntu.

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

sudo apt -y update

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

sudo apt-get install distcc

Install distcc 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 distcc, just following these steps:

Step 1: Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt update

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

sudo aptitude -y install distcc

Uninstall distcc on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a distcc, can be easily uninstalled by anyone.

If you installed distcc using APT or Aptitude, you could uninstall distcc on Ubuntu by following this step:

sudo apt remove --auto-remove distcc

You can also execute this command if you want to uninstall distcc and remove its data and dependencies:

sudo apt autoremove --purge distcc

Summary

In this guide, I showed you ways to install distcc on Ubuntu 22.04 and ways to uninstall distcc too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.