How To Install rerun on Ubuntu 18.04

In this tutorial we learn how to install rerun on Ubuntu 18.04. rerun is tool to launch commands and restart them on filesystem changes

Introduction

In this tutorial we learn how to install rerun on Ubuntu 18.04.

What is rerun

rerun is:

Rerun launches your program, then watches the filesystem. If a relevant file changes, then it restarts your program. Rerun works for both long-running processes (e.g. apps) and for short-running ones (e.g. tests).

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

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

sudo apt-get update

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

sudo apt-get -y install rerun

Install rerun Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install rerun

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

sudo aptitude -y install rerun

How To Uninstall rerun on Ubuntu 18.04

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

sudo apt-get remove rerun

Uninstall rerun And Its Dependencies

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

sudo apt-get -y autoremove rerun

Remove rerun Configurations and Data

To remove rerun configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge rerun

Remove rerun configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge rerun

References

Summary

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