How to Install and Uninstall libre2j-java Package on Kali Linux

Last updated: November 26,2024

1. Install "libre2j-java" package

Here is a brief guide to show you how to install libre2j-java on Kali Linux

$ sudo apt update $ sudo apt install libre2j-java

2. Uninstall "libre2j-java" package

Please follow the guidance below to uninstall libre2j-java on Kali Linux:

$ sudo apt remove libre2j-java $ sudo apt autoclean && sudo apt autoremove

3. Information about the libre2j-java package on Kali Linux

Package: libre2j-java
Source: re2j
Version: 1.7+dfsg-1
Installed-Size: 155
Maintainer: Debian Java Maintainers
Architecture: all
Size: 120620
SHA256: 122637a1adea1ff38b440dababe2e1c4ef4d77683544de47d374ce388fd4b68d
SHA1: 9571114ddda17ea754eb0ebbf9bf9cfb1b939e0d
MD5sum: a54e63641b0bc25a21a145677ba87a40
Description: RE2/J: linear time regular expression matching in Java
RE2 is a regular expression engine that runs in time linear in the size of the
input. RE2/J is a port of RE2 to pure Java.
.
Java's standard regular expression package, java.util.regex, and many other
widely used regular expression packages such as PCRE, Perl and Python use a
backtracking implementation strategy: when a pattern presents two alternatives
such as a|b, the engine will try to match subpattern a first, and if that
yields no match, it will reset the input stream and try to match b instead.
.
If such choices are deeply nested, this strategy requires an exponential
number of passes over the input data before it can detect whether the input
matches. If the input is large, it is easy to construct a pattern whose
running time would exceed the lifetime of the universe. This creates a
security risk when accepting regular expression patterns from untrusted
sources, such as users of a web application.
.
In contrast, the RE2 algorithm explores all matches simultaneously in a single
pass over the input data by using a nondeterministic finite automaton.
.
There are certain features of PCRE or Perl regular expressions that cannot be
implemented in linear time, for example, backreferences, but the vast majority
of regular expressions patterns in practice avoid such features.
Description-md5:
Multi-Arch: foreign
Homepage: https://github.com/google/re2j
Section: java
Priority: optional
Filename: pool/main/r/re2j/libre2j-java_1.7+dfsg-1_all.deb