How To Install libjs-sifter.js on Kali Linux
Introduction
In this tutorial we learn how to install libjs-sifter.js
on Kali Linux.
What is libjs-sifter.js
libjs-sifter.js is:
Sifter is a client and server-side library (via UMD) for textually searching arrays and hashes of objects by property ?? or multiple properties. It’s designed specifically for autocomplete. The process is three-step: score, filter, sort.
Supports d??crit??s.
For example, if searching for “montana” and an item in the set has a value of “monta?a”, it will still be matched. Sorting will also play nicely with diacritics.
Smart scoring.
Items are scored / sorted intelligently depending on where a match is found in the string (how close to the beginning) and what percentage of the string matches.
Multi-field sorting.
When scores aren’t enough to go by ?? like when getting results for an empty query ?? it can sort by one or more fields. For example, sort by a person’s first name and last name without actually merging the properties to a single string.
Nested properties.
Allows one to search and sort on nested properties so you can perform search on complex objects without flattening them simply by using dot-notation to reference fields (ie. nested.property).
There are three methods to install libjs-sifter.js
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-sifter.js 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-sifter.js
using apt-get
by running the following command:
sudo apt-get -y install libjs-sifter.js
Install libjs-sifter.js Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libjs-sifter.js
using apt
by running the following command:
sudo apt -y install libjs-sifter.js
Install libjs-sifter.js 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-sifter.js
using aptitude
by running the following command:
sudo aptitude -y install libjs-sifter.js
How To Uninstall libjs-sifter.js on Kali Linux
To uninstall only the libjs-sifter.js
package we can use the following command:
sudo apt-get remove libjs-sifter.js
Uninstall libjs-sifter.js And Its Dependencies
To uninstall libjs-sifter.js
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libjs-sifter.js
Remove libjs-sifter.js Configurations and Data
To remove libjs-sifter.js
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libjs-sifter.js
Remove libjs-sifter.js configuration, data, and all of its dependencies
We can use the following command to remove libjs-sifter.js
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libjs-sifter.js
Dependencies
libjs-sifter.js have the following dependencies:
References
Summary
In this tutorial we learn how to install libjs-sifter.js
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.