How To Install enum on Ubuntu 22.04

In this tutorial we learn how to install enum on Ubuntu 22.04. enum is seq- and jot-like enumerator

Introduction

In this tutorial we learn how to install enum on Ubuntu 22.04.

What is enum

enum is:

enum enumerates values (numbers) between two values, possibly further adjusted by a step and/or a count, all given on the command line. Before printing, values are passed through a formatter. Very fine control over input interpretation and output is possible.

enum is designed to be a drop-in replacement for GNU seq while still providing (almost) the same feature set jot (on BSD) provides.

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

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

sudo apt-get update

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

sudo apt-get -y install enum

Install enum Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install enum

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

sudo aptitude -y install enum

How To Uninstall enum on Ubuntu 22.04

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

sudo apt-get remove enum

Uninstall enum And Its Dependencies

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

sudo apt-get -y autoremove enum

Remove enum Configurations and Data

To remove enum configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge enum

Remove enum configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge enum

References

Summary

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