How To Install librange-v3-doc on Ubuntu 18.04

In this tutorial we learn how to install librange-v3-doc on Ubuntu 18.04. librange-v3-doc is range algorithms, views, and actions for C++11/14/17 - documentation

Introduction

In this tutorial we learn how to install librange-v3-doc on Ubuntu 18.04.

What is librange-v3-doc

librange-v3-doc is:

Range-v3 is a generic library that augments the existing standard library with facilities for working with ranges. A range can be loosely thought of a pair of iterators. This library provides a full implementation of all the standard algorithms with range-based overloads for convenience.

This package ships HTML documentation of the library.

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

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

sudo apt-get update

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

sudo apt-get -y install librange-v3-doc

Install librange-v3-doc Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install librange-v3-doc using apt by running the following command:

sudo apt -y install librange-v3-doc

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

sudo aptitude -y install librange-v3-doc

How To Uninstall librange-v3-doc on Ubuntu 18.04

To uninstall only the librange-v3-doc package we can use the following command:

sudo apt-get remove librange-v3-doc

Uninstall librange-v3-doc And Its Dependencies

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

sudo apt-get -y autoremove librange-v3-doc

Remove librange-v3-doc Configurations and Data

To remove librange-v3-doc configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge librange-v3-doc

Remove librange-v3-doc configuration, data, and all of its dependencies

We can use the following command to remove librange-v3-doc configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge librange-v3-doc

References

Summary

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