How To Install libjs-headjs on Kali Linux
Introduction
In this tutorial we learn how to install libjs-headjs on Kali Linux.
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 Kali Linux. 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 updateAfter updating apt database, We can install libjs-headjs using apt-get by running the following command:
sudo apt-get -y install libjs-headjsInstall libjs-headjs Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libjs-headjs using apt by running the following command:
sudo apt -y install libjs-headjsInstall libjs-headjs Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install libjs-headjs using aptitude by running the following command:
sudo aptitude -y install libjs-headjsHow To Uninstall libjs-headjs on Kali Linux
To uninstall only the libjs-headjs package we can use the following command:
sudo apt-get remove libjs-headjsUninstall libjs-headjs And Its Dependencies
To uninstall libjs-headjs and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libjs-headjsRemove libjs-headjs Configurations and Data
To remove libjs-headjs configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libjs-headjsRemove 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-headjsDependencies
libjs-headjs have the following dependencies:
References
Summary
In this tutorial we learn how to install libjs-headjs package on Kali Linux using different package management tools: apt, apt-get and aptitude.