How To Install libjsonrpccpp-client0 on Ubuntu 18.04

In this tutorial we learn how to install libjsonrpccpp-client0 on Ubuntu 18.04. libjsonrpccpp-client0 is library implementing json-rpc C++ clients

Introduction

In this tutorial we learn how to install libjsonrpccpp-client0 on Ubuntu 18.04.

What is libjsonrpccpp-client0

libjsonrpccpp-client0 is:

This library provides classes to easily implement JSON-RPC C++ clients. It comes with a built in HTTP-Client connector (based on libcurl) for easy data exchange. It is fully JSON-RPC 2.0 and JSON-RPC 1.0 compatible, including:

  • Type checking
  • Error response handling
  • Batch procedure calls
  • JSON-RPC Method invocation
  • JSON-RPC Notification invocation
  • Interface for additional Client-Connectors beside HTTP
  • Positional and named parameters

There are three methods to install libjsonrpccpp-client0 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 libjsonrpccpp-client0 Using apt-get

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

sudo apt-get update

After updating apt database, We can install libjsonrpccpp-client0 using apt-get by running the following command:

sudo apt-get -y install libjsonrpccpp-client0

Install libjsonrpccpp-client0 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libjsonrpccpp-client0

Install libjsonrpccpp-client0 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 libjsonrpccpp-client0 using aptitude by running the following command:

sudo aptitude -y install libjsonrpccpp-client0

How To Uninstall libjsonrpccpp-client0 on Ubuntu 18.04

To uninstall only the libjsonrpccpp-client0 package we can use the following command:

sudo apt-get remove libjsonrpccpp-client0

Uninstall libjsonrpccpp-client0 And Its Dependencies

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

sudo apt-get -y autoremove libjsonrpccpp-client0

Remove libjsonrpccpp-client0 Configurations and Data

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

sudo apt-get -y purge libjsonrpccpp-client0

Remove libjsonrpccpp-client0 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libjsonrpccpp-client0

References

Summary

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