How To Install libnoggit-java on Ubuntu 18.04

In this tutorial we learn how to install libnoggit-java on Ubuntu 18.04. libnoggit-java is Fast streaming JSON parser for Java

Introduction

In this tutorial we learn how to install libnoggit-java on Ubuntu 18.04.

What is libnoggit-java

libnoggit-java is:

Noggit is the world’s fastest streaming JSON parser for Java. Features:

  • Fast! Measured as the fastest JSON parser on char[], String input.
  • Streaming API (StAX/pull-parser like) for both easy and efficient parsing
  • Conforms to the JSON standard: http://www.ietf.org/rfc/rfc4627.txt
  • Memory efficiency
    • incremental parsing (Reader-based) in order to handle huge messages
    • a single byte of state needed per nested object or array
    • does not read large objects (including primitives) completely into memory unless asked
    • can eliminate most copying, allowing the user to provide the output buffer for values
  • can handle primitives of any size (does not attempt to parse numerics into a certain language primitives unless asked)
  • Simple serialization of objects (List, Map, etc)
  • Optional creation of objects (List, Map, etc) when parsing.

There are three methods to install libnoggit-java on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libnoggit-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 libnoggit-java using apt-get by running the following command:

sudo apt-get -y install libnoggit-java

Install libnoggit-java Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libnoggit-java using apt by running the following command:

sudo apt -y install libnoggit-java

Install libnoggit-java Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libnoggit-java using aptitude by running the following command:

sudo aptitude -y install libnoggit-java

How To Uninstall libnoggit-java on Ubuntu 18.04

To uninstall only the libnoggit-java package we can use the following command:

sudo apt-get remove libnoggit-java

Uninstall libnoggit-java And Its Dependencies

To uninstall libnoggit-java and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libnoggit-java

Remove libnoggit-java Configurations and Data

To remove libnoggit-java configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libnoggit-java

Remove libnoggit-java configuration, data, and all of its dependencies

We can use the following command to remove libnoggit-java configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libnoggit-java

References

Summary

In this tutorial we learn how to install libnoggit-java package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.