How To Install node-boolbase on Ubuntu 18.04

In this tutorial we learn how to install node-boolbase on Ubuntu 18.04. node-boolbase is two functions

Introduction

In this tutorial we learn how to install node-boolbase on Ubuntu 18.04.

What is node-boolbase

node-boolbase is:

This very simple module provides two basic functions, one that always returns true (trueFunc) and one that always returns false (falseFunc).

By having only a single instance of these functions around, it’s possible to do some nice optimizations. Eg. CSSselect uses these functions to determine whether a selector won’t match any elements. If that’s the case, the DOM doesn’t even have to be touched.

Node.js is an event-based server-side JavaScript engine.

There are three methods to install node-boolbase 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 node-boolbase 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-boolbase using apt-get by running the following command:

sudo apt-get -y install node-boolbase

Install node-boolbase Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install node-boolbase

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

sudo aptitude -y install node-boolbase

How To Uninstall node-boolbase on Ubuntu 18.04

To uninstall only the node-boolbase package we can use the following command:

sudo apt-get remove node-boolbase

Uninstall node-boolbase And Its Dependencies

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

sudo apt-get -y autoremove node-boolbase

Remove node-boolbase Configurations and Data

To remove node-boolbase configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge node-boolbase

Remove node-boolbase configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge node-boolbase

References

Summary

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