How To Install ruby-spring-watcher-listen on Ubuntu 22.04
Introduction
In this tutorial we learn how to install ruby-spring-watcher-listen
on Ubuntu 22.04.
What is ruby-spring-watcher-listen
ruby-spring-watcher-listen is:
This library makes Spring watch the filesystem for changes using Listen rather than by polling the filesystem.
On larger projects this means spring will be more responsive, more accurate and use less cpu on local filesystems.
NFS, shared VM folders and user file systems will still need polling.
There are three methods to install ruby-spring-watcher-listen
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 ruby-spring-watcher-listen 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-spring-watcher-listen
using apt-get
by running the following command:
sudo apt-get -y install ruby-spring-watcher-listen
Install ruby-spring-watcher-listen Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ruby-spring-watcher-listen
using apt
by running the following command:
sudo apt -y install ruby-spring-watcher-listen
Install ruby-spring-watcher-listen 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-spring-watcher-listen
using aptitude
by running the following command:
sudo aptitude -y install ruby-spring-watcher-listen
How To Uninstall ruby-spring-watcher-listen on Ubuntu 22.04
To uninstall only the ruby-spring-watcher-listen
package we can use the following command:
sudo apt-get remove ruby-spring-watcher-listen
Uninstall ruby-spring-watcher-listen And Its Dependencies
To uninstall ruby-spring-watcher-listen
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove ruby-spring-watcher-listen
Remove ruby-spring-watcher-listen Configurations and Data
To remove ruby-spring-watcher-listen
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge ruby-spring-watcher-listen
Remove ruby-spring-watcher-listen configuration, data, and all of its dependencies
We can use the following command to remove ruby-spring-watcher-listen
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-spring-watcher-listen
References
Summary
In this tutorial we learn how to install ruby-spring-watcher-listen
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.