How To Install rust on Rocky Linux 8
Introduction
In this tutorial we learn how to install rust
on Rocky Linux 8.
What is rust
Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety. This package includes the Rust compiler and documentation generator.
We can use yum
or dnf
to install rust
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install rust.
Install rust 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
using dnf
by running the following command:
sudo dnf -y install rust
Install rust 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
using yum
by running the following command:
sudo yum -y install rust
How To Uninstall rust on Rocky Linux 8
To uninstall only the rust
package we can use the following command:
sudo dnf remove rust
rust Package Contents on Rocky Linux 8
/usr/bin/rustc
/usr/bin/rustdoc
/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/73e66b144323240a61c4833d54dff23400657f
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/17b71c8dcd8fbb3cbaca5979c4131468e7bcff
/usr/lib/.build-id/25
/usr/lib/.build-id/25/bf1207ed4653d013e75aba94442e57bf61905c
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/e971e982640c6e82a2a2b99c319101da735cd8
/usr/lib/.build-id/52
/usr/lib/.build-id/52/fbcdcb6dc085ae0be9c4b7e0f683e613a109d1
/usr/lib/.build-id/63
/usr/lib/.build-id/63/cc971e3a253ef39b9b661fd13dfe99416851a6
/usr/lib/.build-id/65
/usr/lib/.build-id/65/0626907f9d2a7204a38c30fe92c96d871b58f8
/usr/lib/.build-id/74
/usr/lib/.build-id/74/cdcb77441896c0a4bc28c02a343c8f5315165f
/usr/lib/rustlib
/usr/lib/rustlib/x86_64-unknown-linux-gnu
/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib
/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-048cf265bdc1540e.so
/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest-880dd02e079805cd.so
/usr/lib64/libchalk_derive-e10cdcd5fff5f87f.so
/usr/lib64/librustc_driver-2550309e88394301.so
/usr/lib64/librustc_macros-53be55f7cda88cd6.so
/usr/lib64/libstd-048cf265bdc1540e.so
/usr/lib64/libtest-880dd02e079805cd.so
/usr/lib64/libtracing_attributes-c1a8f781bf9dca51.so
/usr/share/doc/rust
/usr/share/doc/rust/README.md
/usr/share/licenses/rust
/usr/share/licenses/rust/COPYRIGHT
/usr/share/licenses/rust/LICENSE-APACHE
/usr/share/licenses/rust/LICENSE-MIT
/usr/share/man/man1/rustc.1.gz
/usr/share/man/man1/rustdoc.1.gz
References
Summary
In this tutorial we learn how to install rust
on Rocky Linux 8 using yum and dnf.