How To Install cppreference-doc-en-html on Ubuntu 22.04

In this tutorial we learn how to install cppreference-doc-en-html on Ubuntu 22.04. cppreference-doc-en-html is C and C++ standard library reference (English, Devhelp variant)

Introduction

In this tutorial we learn how to install cppreference-doc-en-html on Ubuntu 22.04.

What is cppreference-doc-en-html

cppreference-doc-en-html is:

A version of online C and C++ standard library reference manual available at en.cppreference.com, suitable for viewing offline.

This package contains a Devhelp book.

There are three methods to install cppreference-doc-en-html on Ubuntu 22.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 cppreference-doc-en-html Using apt-get

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

sudo apt-get update

After updating apt database, We can install cppreference-doc-en-html using apt-get by running the following command:

sudo apt-get -y install cppreference-doc-en-html

Install cppreference-doc-en-html Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install cppreference-doc-en-html using apt by running the following command:

sudo apt -y install cppreference-doc-en-html

Install cppreference-doc-en-html 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 cppreference-doc-en-html using aptitude by running the following command:

sudo aptitude -y install cppreference-doc-en-html

How To Uninstall cppreference-doc-en-html on Ubuntu 22.04

To uninstall only the cppreference-doc-en-html package we can use the following command:

sudo apt-get remove cppreference-doc-en-html

Uninstall cppreference-doc-en-html And Its Dependencies

To uninstall cppreference-doc-en-html and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove cppreference-doc-en-html

Remove cppreference-doc-en-html Configurations and Data

To remove cppreference-doc-en-html configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge cppreference-doc-en-html

Remove cppreference-doc-en-html configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge cppreference-doc-en-html

References

Summary

In this tutorial we learn how to install cppreference-doc-en-html package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.