How To Install libjson-multivalueordered-perl on Ubuntu 18.04

In this tutorial we learn how to install libjson-multivalueordered-perl on Ubuntu 18.04. libjson-multivalueordered-perl is module to handle JSON like {a

Introduction

In this tutorial we learn how to install libjson-multivalueordered-perl on Ubuntu 18.04.

What is libjson-multivalueordered-perl

libjson-multivalueordered-perl is:

A hash tied to the JSON::MultiValueOrdered class acts more or less like a standard hash, except that when you assign a new value to an existing key, the old value is retained underneath. An explicit delete deletes all values associated with a key.

By default, the old values are inaccessible through the hash interface, but can be retrieved via the tied object, however, the fetch_* methods provide a means to alter the behaviour of the hash.

There are three methods to install libjson-multivalueordered-perl 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 libjson-multivalueordered-perl Using apt-get

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

sudo apt-get update

After updating apt database, We can install libjson-multivalueordered-perl using apt-get by running the following command:

sudo apt-get -y install libjson-multivalueordered-perl

Install libjson-multivalueordered-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libjson-multivalueordered-perl using apt by running the following command:

sudo apt -y install libjson-multivalueordered-perl

Install libjson-multivalueordered-perl 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 libjson-multivalueordered-perl using aptitude by running the following command:

sudo aptitude -y install libjson-multivalueordered-perl

How To Uninstall libjson-multivalueordered-perl on Ubuntu 18.04

To uninstall only the libjson-multivalueordered-perl package we can use the following command:

sudo apt-get remove libjson-multivalueordered-perl

Uninstall libjson-multivalueordered-perl And Its Dependencies

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

sudo apt-get -y autoremove libjson-multivalueordered-perl

Remove libjson-multivalueordered-perl Configurations and Data

To remove libjson-multivalueordered-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libjson-multivalueordered-perl

Remove libjson-multivalueordered-perl configuration, data, and all of its dependencies

We can use the following command to remove libjson-multivalueordered-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libjson-multivalueordered-perl

References

Summary

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