How To Install ruby-activejob on Ubuntu 18.04

In this tutorial we learn how to install ruby-activejob on Ubuntu 18.04. ruby-activejob is job framework with pluggable queues

Introduction

In this tutorial we learn how to install ruby-activejob on Ubuntu 18.04.

What is ruby-activejob

ruby-activejob is:

Active Job is a framework for declaring jobs and making them run on a variety of queueing backends. These jobs can be everything from regularly scheduled clean-ups, to billing charges, to mailings. Anything that can be chopped up into small units of work and run in parallel, really.

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

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

sudo apt-get update

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

sudo apt-get -y install ruby-activejob

Install ruby-activejob Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-activejob

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

sudo aptitude -y install ruby-activejob

How To Uninstall ruby-activejob on Ubuntu 18.04

To uninstall only the ruby-activejob package we can use the following command:

sudo apt-get remove ruby-activejob

Uninstall ruby-activejob And Its Dependencies

To uninstall ruby-activejob and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove ruby-activejob

Remove ruby-activejob Configurations and Data

To remove ruby-activejob configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ruby-activejob

Remove ruby-activejob configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ruby-activejob

References

Summary

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