How To Install libnvpair1linux on Ubuntu 18.04

In this tutorial we learn how to install libnvpair1linux on Ubuntu 18.04. libnvpair1linux is Solaris name-value library for Linux

Introduction

In this tutorial we learn how to install libnvpair1linux on Ubuntu 18.04.

What is libnvpair1linux

libnvpair1linux is:

This library provides routines for packing and unpacking nv pairs for transporting data across process boundaries, transporting between kernel and userland, and possibly saving onto disk files.

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

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

sudo apt-get update

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

sudo apt-get -y install libnvpair1linux

Install libnvpair1linux Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libnvpair1linux using apt by running the following command:

sudo apt -y install libnvpair1linux

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

sudo aptitude -y install libnvpair1linux

How To Uninstall libnvpair1linux on Ubuntu 18.04

To uninstall only the libnvpair1linux package we can use the following command:

sudo apt-get remove libnvpair1linux

Uninstall libnvpair1linux And Its Dependencies

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

sudo apt-get -y autoremove libnvpair1linux

Remove libnvpair1linux Configurations and Data

To remove libnvpair1linux configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libnvpair1linux

Remove libnvpair1linux configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libnvpair1linux

References

Summary

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