rerun command not found

In this troubleshooting guide we learn how to fix rerun command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

rerun: command not found

or when using sudo you get the following error message

sudo: rerun: command not found

Solutions to rerun: command not found

How To Fix rerun: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu rerun is provided by rerun package.

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).

Install libnotify-bin to get desktop notifications when your application is restarted, or about the results of your tests.

To fix this problem, we can install more using the command below.

sudo apt-get -y install rerun

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install rerun.

sudo apt -y install rerun

Or if you have aptitude installed you can use the following command.

sudo aptitude install rerun

Summary

In this tutorial we learn how to fix rerun command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.