How To Install libanimal-sniffer-java on Kali Linux
Introduction
In this tutorial we learn how to install libanimal-sniffer-java
on Kali Linux.
What is libanimal-sniffer-java
libanimal-sniffer-java is:
Animal Sniffer provides tools to assist verifying that classes compiled with a newer JDK/API are compatible with an older JDK/API.
The Java Boot Classpath Detector is an executable jar file which tries to determine the boot classpath of the Java Runtime and outputs that classpath to the standard output.
Animal Sniffer Annotations provides Java 1.5+ annotations which allow marking methods which Animal Sniffer should ignore signature violations of. Animal Sniffer is designed to detect when you have used classes/methods/fields which are not part of the JRE that you are targeting. There are certain situations when you might be compiling with a newer JDK than the JRE you are targeting.
The Animal Sniffer ANT Tasks can be used to build signatures of APIs and to check your classes against previously generated signatures.
The Animal Sniffer Enforcer Rule is used to check your classes against previously generated signatures.
The Animal Sniffer Maven Plugin is used to build signatures of APIs and to check your classes against previously generated signatures.
There are three methods to install libanimal-sniffer-java
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 libanimal-sniffer-java Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libanimal-sniffer-java
using apt-get
by running the following command:
sudo apt-get -y install libanimal-sniffer-java
Install libanimal-sniffer-java Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libanimal-sniffer-java
using apt
by running the following command:
sudo apt -y install libanimal-sniffer-java
Install libanimal-sniffer-java 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 libanimal-sniffer-java
using aptitude
by running the following command:
sudo aptitude -y install libanimal-sniffer-java
How To Uninstall libanimal-sniffer-java on Kali Linux
To uninstall only the libanimal-sniffer-java
package we can use the following command:
sudo apt-get remove libanimal-sniffer-java
Uninstall libanimal-sniffer-java And Its Dependencies
To uninstall libanimal-sniffer-java
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libanimal-sniffer-java
Remove libanimal-sniffer-java Configurations and Data
To remove libanimal-sniffer-java
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libanimal-sniffer-java
Remove libanimal-sniffer-java configuration, data, and all of its dependencies
We can use the following command to remove libanimal-sniffer-java
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libanimal-sniffer-java
Dependencies
libanimal-sniffer-java have the following dependencies:
- libasm-java
- libmaven-common-artifact-filters-java
- libmaven-enforcer-plugin-java
- libmaven3-core-java
- libplexus-container-default1.5-java
- libplexus-utils-java
References
Summary
In this tutorial we learn how to install libanimal-sniffer-java
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.