How To Install node-fs-vacuum on Ubuntu 22.04
Introduction
In this tutorial we learn how to install node-fs-vacuum
on Ubuntu 22.04.
What is node-fs-vacuum
node-fs-vacuum is:
Recursively removes empty directories – to a point.
Remove the empty branches of a directory tree, optionally up to (but not including) a specified base directory. Optionally nukes the leaf directory.
Node.js is an event-based server-side JavaScript engine.
There are three methods to install node-fs-vacuum
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 node-fs-vacuum Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install node-fs-vacuum
using apt-get
by running the following command:
sudo apt-get -y install node-fs-vacuum
Install node-fs-vacuum Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install node-fs-vacuum
using apt
by running the following command:
sudo apt -y install node-fs-vacuum
Install node-fs-vacuum 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 node-fs-vacuum
using aptitude
by running the following command:
sudo aptitude -y install node-fs-vacuum
How To Uninstall node-fs-vacuum on Ubuntu 22.04
To uninstall only the node-fs-vacuum
package we can use the following command:
sudo apt-get remove node-fs-vacuum
Uninstall node-fs-vacuum And Its Dependencies
To uninstall node-fs-vacuum
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove node-fs-vacuum
Remove node-fs-vacuum Configurations and Data
To remove node-fs-vacuum
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge node-fs-vacuum
Remove node-fs-vacuum configuration, data, and all of its dependencies
We can use the following command to remove node-fs-vacuum
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge node-fs-vacuum
References
Summary
In this tutorial we learn how to install node-fs-vacuum
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.