How To Install rust-doc on Ubuntu 20.04

In this tutorial we learn how to install rust-doc on Ubuntu 20.04. rust-doc is Rust systems programming language - Documentation Rust systems programming language - Documentation Rust systems programming language - Documentation

Introduction

In this tutorial we learn how to install rust-doc on Ubuntu 20.04.

What is rust-doc

rust-doc is:

Rust is a curly-brace, block-structured expression language. It visually resembles the C language family, but differs significantly in syntactic and semantic details. Its design is oriented toward concerns of “programming in the large”, that is, of creating and maintaining boundaries - both abstract and operational - that preserve large-system integrity, availability and concurrency.

It supports a mixture of imperative procedural, concurrent actor, object-oriented and pure functional styles. Rust also supports generic programming and meta-programming, in both static and dynamic styles.

This package contains the Rust tutorial, language reference and standard library documentation.

Package: rust-doc Architecture: all Version: 1.43.0+dfsg1+llvm-1~exp1ubuntu1~20.04.1 Priority: extra Section: universe/doc Source: rustc Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Rust Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 247721 Depends: libjs-jquery, libjs-highlight.js, libjs-mathjax, fonts-open-sans, fonts-font-awesome Recommends: cargo-doc Filename: pool/universe/r/rustc/rust-doc_1.43.0+dfsg1+llvm-1~exp1ubuntu1~20.04.1_all.deb Size: 11670516 MD5sum: 9bacbc484163849b89aeb1225eb9f2cf SHA1: 0c78b7aa8458e8151d7c33dbd8cff37fecee15c9 SHA256: f3c87d7d50674398743fbe27b5ccbfab9d73b194724bfea56aaf403aefefd287 SHA512: 9b4eb35fb737d889dfead593061b27d6d8de5082c1f5e07e0f25184a1721384d45e7e5f65db561ae1729bd2947bf2bc4de6374418b5a780b071c75441e4e1196 Homepage: http://www.rust-lang.org/ Description-en: Rust systems programming language - Documentation Rust is a curly-brace, block-structured expression language. It visually resembles the C language family, but differs significantly in syntactic and semantic details. Its design is oriented toward concerns of “programming in the large”, that is, of creating and maintaining boundaries - both abstract and operational - that preserve large-system integrity, availability and concurrency.

It supports a mixture of imperative procedural, concurrent actor, object-oriented and pure functional styles. Rust also supports generic programming and meta-programming, in both static and dynamic styles.

This package contains the Rust tutorial, language reference and standard library documentation.

Package: rust-doc Architecture: all Version: 1.41.0+dfsg1+llvm-0ubuntu2 Priority: extra Section: universe/doc Source: rustc Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Rust Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 254427 Depends: libjs-jquery, libjs-highlight.js, libjs-mathjax, fonts-open-sans, fonts-font-awesome Recommends: cargo-doc Filename: pool/universe/r/rustc/rust-doc_1.41.0+dfsg1+llvm-0ubuntu2_all.deb Size: 11440764 MD5sum: 5010d51ef2933578f22ca2235fc9b67c SHA1: a197d1703f956d90adb338c01463ea7c8eb88e10 SHA256: 16852b7d196cf8a9057d63319828b0dbc645c0f2ffe1c803704a0672a44b4081 Homepage: http://www.rust-lang.org/ Description-en: Rust systems programming language - Documentation Rust is a curly-brace, block-structured expression language. It visually resembles the C language family, but differs significantly in syntactic and semantic details. Its design is oriented toward concerns of “programming in the large”, that is, of creating and maintaining boundaries - both abstract and operational - that preserve large-system integrity, availability and concurrency.

It supports a mixture of imperative procedural, concurrent actor, object-oriented and pure functional styles. Rust also supports generic programming and meta-programming, in both static and dynamic styles.

This package contains the Rust tutorial, language reference and standard library documentation.

There are three methods to install rust-doc 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 rust-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 rust-doc using apt-get by running the following command:

sudo apt-get -y install rust-doc

Install rust-doc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install rust-doc

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

sudo aptitude -y install rust-doc

How To Uninstall rust-doc on Ubuntu 20.04

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

sudo apt-get remove rust-doc

Uninstall rust-doc And Its Dependencies

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

sudo apt-get -y autoremove rust-doc

Remove rust-doc Configurations and Data

To remove rust-doc configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge rust-doc

Remove rust-doc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge rust-doc

References

Summary

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