How To Install rust-lldb on Ubuntu 20.04

In this tutorial we learn how to install rust-lldb on Ubuntu 20.04. rust-lldb is Rust debugger (lldb) Rust debugger (lldb) Rust debugger (lldb)

Introduction

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

What is rust-lldb

rust-lldb 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 pretty printers and a wrapper script for invoking lldb on rust binaries.

Package: rust-lldb Architecture: all Version: 1.43.0+dfsg1+llvm-1~exp1ubuntu1~20.04.1 Priority: extra Section: universe/devel 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: 233 Depends: lldb-9, python3-lldb-9 Replaces: rustc (« 1.1.0+dfsg1-1) Filename: pool/universe/r/rustc/rust-lldb_1.43.0+dfsg1+llvm-1~exp1ubuntu1~20.04.1_all.deb Size: 26212 MD5sum: 90dd31d19b9d5e863d5928bfef972e82 SHA1: 882718ab430b1b81e3ac6509bf27056abea8dc91 SHA256: b06d065a58c29406aba8168c654b3979e0ec1772d3758cede693162263546ec1 SHA512: 5971d497799ad789e65f25bcc08cc1ad97e8db53a0848790dbe7e11f85805d952ba716f5f120d02570d85537cfa01631dad4c7784c339b864268717db035e8fb Homepage: http://www.rust-lang.org/ Description-en: Rust debugger (lldb) 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 pretty printers and a wrapper script for invoking lldb on rust binaries.

Package: rust-lldb Architecture: all Version: 1.41.0+dfsg1+llvm-0ubuntu2 Priority: extra Section: universe/devel 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: 227 Depends: lldb-9, python3-lldb-9 Replaces: rustc (« 1.1.0+dfsg1-1) Filename: pool/universe/r/rustc/rust-lldb_1.41.0+dfsg1+llvm-0ubuntu2_all.deb Size: 25804 MD5sum: 53c52481fbf23714d0535041a405ba04 SHA1: dd852fc998683d993c69985f3e8b7e16a8fdeefb SHA256: 914b2c7433220b96f9e87b006253f465ea55ba7db0e5a9a1590c79e21cd8ccd1 Homepage: http://www.rust-lang.org/ Description-en: Rust debugger (lldb) 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 pretty printers and a wrapper script for invoking lldb on rust binaries.

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

sudo apt-get -y install rust-lldb

Install rust-lldb Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install rust-lldb

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

sudo aptitude -y install rust-lldb

How To Uninstall rust-lldb on Ubuntu 20.04

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

sudo apt-get remove rust-lldb

Uninstall rust-lldb And Its Dependencies

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

sudo apt-get -y autoremove rust-lldb

Remove rust-lldb Configurations and Data

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

sudo apt-get -y purge rust-lldb

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

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

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

References

Summary

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