How To Install libnewtonsoft-json5.0-cil on Ubuntu 18.04

In this tutorial we learn how to install libnewtonsoft-json5.0-cil on Ubuntu 18.04. libnewtonsoft-json5.0-cil is high-performance JSON framework for .NET

Introduction

In this tutorial we learn how to install libnewtonsoft-json5.0-cil on Ubuntu 18.04.

What is libnewtonsoft-json5.0-cil

libnewtonsoft-json5.0-cil is:

Json.NET is a high-performance JSON framework for .NET. It has the following features:

  • Flexible JSON serializer for converting between .NET objects and JSON
  • LINQ to JSON for manually reading and writing JSON
  • High performance, faster than .NET’s build-in JSON serializers
  • Write indented, easy to read JSON
  • Convert JSON to and from XML

The JSON serializer is a good choice when the JSN being read or written maps closely to a .NET class.

LINQ to JSON is good for situations in which there is no class to serialize or deserialize to, or the JSON is radically different from the class structure and manual manipulation is required.

This package contains the Json.NET assemblies.

There are three methods to install libnewtonsoft-json5.0-cil 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 libnewtonsoft-json5.0-cil Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libnewtonsoft-json5.0-cil using apt-get by running the following command:

sudo apt-get -y install libnewtonsoft-json5.0-cil

Install libnewtonsoft-json5.0-cil Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libnewtonsoft-json5.0-cil using apt by running the following command:

sudo apt -y install libnewtonsoft-json5.0-cil

Install libnewtonsoft-json5.0-cil 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 libnewtonsoft-json5.0-cil using aptitude by running the following command:

sudo aptitude -y install libnewtonsoft-json5.0-cil

How To Uninstall libnewtonsoft-json5.0-cil on Ubuntu 18.04

To uninstall only the libnewtonsoft-json5.0-cil package we can use the following command:

sudo apt-get remove libnewtonsoft-json5.0-cil

Uninstall libnewtonsoft-json5.0-cil And Its Dependencies

To uninstall libnewtonsoft-json5.0-cil and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libnewtonsoft-json5.0-cil

Remove libnewtonsoft-json5.0-cil Configurations and Data

To remove libnewtonsoft-json5.0-cil configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libnewtonsoft-json5.0-cil

Remove libnewtonsoft-json5.0-cil configuration, data, and all of its dependencies

We can use the following command to remove libnewtonsoft-json5.0-cil configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libnewtonsoft-json5.0-cil

References

Summary

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