How To Install rustfmt on Rocky Linux 8
In this tutorial we learn how to install rustfmt on Rocky Linux 8. rustfmt is Tool to find and fix Rust formatting issues
Introduction
In this tutorial we learn how to install rustfmt
on Rocky Linux 8.
What is rustfmt
A tool for formatting Rust code according to style guidelines.
We can use yum
or dnf
to install rustfmt
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install rustfmt.
Install rustfmt 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 rustfmt
using dnf
by running the following command:
sudo dnf -y install rustfmt
Install rustfmt 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 rustfmt
using yum
by running the following command:
sudo yum -y install rustfmt
How To Uninstall rustfmt on Rocky Linux 8
To uninstall only the rustfmt
package we can use the following command:
sudo dnf remove rustfmt
rustfmt Package Contents on Rocky Linux 8
/usr/bin/cargo-fmt
/usr/bin/rustfmt
/usr/lib/.build-id
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/97df710df6f8b0e05cf0eb1ac1371fb16b6d63
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/8f00e83fbb63da1994459796fd6ab03ad63212
/usr/share/doc/rustfmt
/usr/share/doc/rustfmt/CHANGELOG.md
/usr/share/doc/rustfmt/Configurations.md
/usr/share/doc/rustfmt/README.md
/usr/share/licenses/rustfmt
/usr/share/licenses/rustfmt/LICENSE-APACHE
/usr/share/licenses/rustfmt/LICENSE-MIT
References
Summary
In this tutorial we learn how to install rustfmt
on Rocky Linux 8 using yum and dnf.