How To Install aggregate on Ubuntu 20.04

In this tutorial we learn how to install aggregate on Ubuntu 20.04. aggregate is ipv4 cidr prefix aggregator

Introduction

In this tutorial we learn how to install aggregate on Ubuntu 20.04.

What is aggregate

aggregate is:

takes a list of prefixes in conventional format on stdin, and performs two optimisations to reduce the length of the prefix list. It removes any supplied prefixes which are supurfluous because they are already included in another supplied prefix (e.g., 203.97.2.0/24 would be removed if 203.97.0.0/17 was also supplied), and identifies adjacent prefixes that can be combined under a single, shorter-length prefix (e.g., 203.97.2.0/24 and 203.97.3.0/24 can be combined into the single prefix 203.97.2.0/23). Tag: implemented-in::c, interface::commandline, network::configuration, network::routing, protocol::ip, role::program, scope::utility, use::analysing, use::configuring, use::converting, use::routing, works-with-format::plaintext, works-with::network-traffic, works-with::text

There are three methods to install aggregate 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 aggregate Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install aggregate

Install aggregate Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install aggregate

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

sudo aptitude -y install aggregate

How To Uninstall aggregate on Ubuntu 20.04

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

sudo apt-get remove aggregate

Uninstall aggregate And Its Dependencies

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

sudo apt-get -y autoremove aggregate

Remove aggregate Configurations and Data

To remove aggregate configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge aggregate

Remove aggregate configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge aggregate

References

Summary

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