How To Install node-ignore on Kali Linux
Introduction
In this tutorial we learn how to install node-ignore
on Kali Linux.
What is node-ignore
node-ignore is:
“ignore” is a manager, filter and parser for the .gitignore spec at https://git-scm.com/docs/gitignore, implemented in pure JavaScript.
- Standalone module, much simpler than e.g. “fstream-ignore”.
- Only contains utility methods to filter paths according to the specified ignore rules.
- Never tries to discover ignore rules by traversing directories or fetching from git configurations.
- Doesn’t care about sub-modules of git projects.
- Complies exactly to gitignore documentation
at https://git-scm.com/docs/gitignore:
- “/*.js” should only match “a.js”, not also “abc/a.js”.
- “**/foo” should match “foo” anywhere.
- Prevents re-including a file excluded in a parent directory.
- Handles trailing whitespaces:
- “a " (one space) should not match “a " (two spaces).
- “a \ " matches “a “.
- All test cases are verified against “git check-ignore”.
There are three methods to install node-ignore
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 node-ignore 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-ignore
using apt-get
by running the following command:
sudo apt-get -y install node-ignore
Install node-ignore Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install node-ignore
using apt
by running the following command:
sudo apt -y install node-ignore
Install node-ignore 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 node-ignore
using aptitude
by running the following command:
sudo aptitude -y install node-ignore
How To Uninstall node-ignore on Kali Linux
To uninstall only the node-ignore
package we can use the following command:
sudo apt-get remove node-ignore
Uninstall node-ignore And Its Dependencies
To uninstall node-ignore
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove node-ignore
Remove node-ignore Configurations and Data
To remove node-ignore
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge node-ignore
Remove node-ignore configuration, data, and all of its dependencies
We can use the following command to remove node-ignore
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge node-ignore
Dependencies
node-ignore have the following dependencies:
References
Summary
In this tutorial we learn how to install node-ignore
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.