How To Install at on Ubuntu 22.04

In this tutorial we learn how to install at on Ubuntu 22.04. at is Delayed job execution and batch processing

Introduction

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

What is at

at is:

At and batch read shell commands from standard input storing them as a job to be scheduled for execution in the future.

Use at to run the job at a specified time batch to run the job when system load levels permit

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

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

sudo apt-get update

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

sudo apt-get -y install at

Install at Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install at

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

sudo aptitude -y install at

How To Uninstall at on Ubuntu 22.04

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

sudo apt-get remove at

Uninstall at And Its Dependencies

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

sudo apt-get -y autoremove at

Remove at Configurations and Data

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

sudo apt-get -y purge at

Remove at configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge at

References

Summary

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