How To Install libjs-img.srcset on Kali Linux

In this tutorial we learn how to install libjs-img.srcset on Kali Linux. libjs-img.srcset is fast JavaScript polyfill for img srcset

Introduction

In this tutorial we learn how to install libjs-img.srcset on Kali Linux.

What is libjs-img.srcset

libjs-img.srcset is:

img.srcset is a lightweight, no nonsense, all browser supporting, fast polyfill for img srcset, allowing for lighter yet backwards-compatible responsive web design.

The srcset attribute is an HTML extension for adaptive (a.k.a. responsive) images. More info at http://www.w3.org/TR/html-srcset/.

A polyfill is (in the context of HTML5) Javascript code implementation of a functionality often available in modern web browsers, allowing web designers to use simpler standards-compliant and declarative code, burdening only older/simpler browsers with these fallback snippets.

There are three methods to install libjs-img.srcset 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-img.srcset 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-img.srcset using apt-get by running the following command:

sudo apt-get -y install libjs-img.srcset

Install libjs-img.srcset Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libjs-img.srcset

Install libjs-img.srcset 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 update

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

sudo aptitude -y install libjs-img.srcset

How To Uninstall libjs-img.srcset on Kali Linux

To uninstall only the libjs-img.srcset package we can use the following command:

sudo apt-get remove libjs-img.srcset

Uninstall libjs-img.srcset And Its Dependencies

To uninstall libjs-img.srcset and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libjs-img.srcset

Remove libjs-img.srcset Configurations and Data

To remove libjs-img.srcset configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libjs-img.srcset

Remove libjs-img.srcset configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libjs-img.srcset

Dependencies

libjs-img.srcset have the following dependencies:

References

Summary

In this tutorial we learn how to install libjs-img.srcset package on Kali Linux using different package management tools: apt, apt-get and aptitude.