How To Install librange-v3-dev on Ubuntu 20.04

In this tutorial we learn how to install librange-v3-dev on Ubuntu 20.04. librange-v3-dev is range algorithms, views, and actions for C++14/17/20 - headers

Introduction

In this tutorial we learn how to install librange-v3-dev on Ubuntu 20.04.

What is librange-v3-dev

librange-v3-dev 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 contains headers of the library.

There are three methods to install librange-v3-dev on Ubuntu 20.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-dev 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-dev using apt-get by running the following command:

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

Install librange-v3-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install librange-v3-dev

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

sudo aptitude -y install librange-v3-dev

How To Uninstall librange-v3-dev on Ubuntu 20.04

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

sudo apt-get remove librange-v3-dev

Uninstall librange-v3-dev And Its Dependencies

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

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

Remove librange-v3-dev Configurations and Data

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

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

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

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

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

References

Summary

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