How To Install rust-lldb on Rocky Linux 8

In this tutorial we learn how to install rust-lldb on Rocky Linux 8. rust-lldb is LLDB pretty printers for Rust

Introduction

In this tutorial we learn how to install rust-lldb on Rocky Linux 8.

What is rust-lldb

This package includes the rust-lldb script, which allows easier debugging of Rust programs.

We can use yum or dnf to install rust-lldb on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install rust-lldb.

Install rust-lldb on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install rust-lldb

Install rust-lldb on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install rust-lldb

How To Uninstall rust-lldb on Rocky Linux 8

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

sudo dnf remove rust-lldb

rust-lldb Package Contents on Rocky Linux 8

/usr/bin/rust-lldb
/usr/lib/rustlib/etc/lldb_commands
/usr/lib/rustlib/etc/lldb_lookup.py
/usr/lib/rustlib/etc/lldb_providers.py

References

Summary

In this tutorial we learn how to install rust-lldb on Rocky Linux 8 using yum and dnf.