How To Install libjs-headjs on Debian 11

In this tutorial we learn how to install libjs-headjs on Debian 11. libjs-headjs is javascript libraryt for resource loading

Introduction

In this tutorial we learn how to install libjs-headjs on Debian 11.

What is libjs-headjs

libjs-headjs is:

headjs is a javascript library that has the following features:

  • Speed up your apps: Load JS & CSS asynchronously and in parallel, but execute them in order
  • Load one asset if a condition is met, else fallback and load a different one
  • Manage script dependencies, and execute callbacks once they are loaded
  • Cross-browser compatible «pseudo media-queries» let you code against different resolutions & devices
  • Fix quirks in specific browsers by quickly applying dedicated CSS/JS logic
  • Detect various browsers & their versions
  • Check if the client supports a certain Browser, HTML5, or CSS3 feature
  • Automatically generates JS and CSS classes for browsers & features that where detected
  • Automatically generates CSS classes, to know what page or section a user is viewing
  • Know if the user is in landscape or portrait mode
  • Or whether the client is using a mobile or desktop device
  • Get old browsers to support HTML5 elements like nav, sidebar, header, footer

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

There are three methods to install libjs-headjs on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libjs-headjs Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libjs-headjs using apt-get by running the following command:

sudo apt-get -y install libjs-headjs

Install libjs-headjs Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libjs-headjs

Install libjs-headjs 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libjs-headjs using aptitude by running the following command:

sudo aptitude -y install libjs-headjs

How To Uninstall libjs-headjs on Debian 11

To uninstall only the libjs-headjs package we can use the following command:

sudo apt-get remove libjs-headjs

Uninstall libjs-headjs And Its Dependencies

To uninstall libjs-headjs and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove libjs-headjs

Remove libjs-headjs Configurations and Data

To remove libjs-headjs configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge libjs-headjs

Remove libjs-headjs configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libjs-headjs

Dependencies

libjs-headjs have the following dependencies:

References

Summary

In this tutorial we learn how to install libjs-headjs package on Debian 11 using different package management tools: apt, apt-get and aptitude.