How To Install rerun on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
2 minutes • 375 words
Introduction
In this tutorial we learn how to install rerun on Ubuntu.
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).
Install libnotify-bin to get desktop notifications when your application is restarted, or about the results of your tests.
There are three methods to install rerun on Ubuntu. 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
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, 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 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
Dependencies
rerun have the following dependencies:
References
Summary
In this tutorial we learn how to install rerun package on Ubuntu using different package management tools: apt, apt-get and aptitude.