How To Install clippy on Rocky Linux 8
Introduction
In this tutorial we learn how to install clippy on Rocky Linux 8.
What is clippy
A collection of lints to catch common mistakes and improve your Rust code.
We can use yum or dnf to install clippy on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install clippy.
Install clippy 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 clippy using dnf by running the following command:
sudo dnf -y install clippy
Install clippy 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 clippy using yum by running the following command:
sudo yum -y install clippy
How To Uninstall clippy on Rocky Linux 8
To uninstall only the clippy package we can use the following command:
sudo dnf remove clippy
clippy Package Contents on Rocky Linux 8
/usr/bin/cargo-clippy
/usr/bin/clippy-driver
/usr/lib/.build-id
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/261ec45ffb5d3b045c351c448f6138ea47f232
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/7b2ff04036dbacdd5ea3168d8f97782db3641a
/usr/share/doc/clippy
/usr/share/doc/clippy/CHANGELOG.md
/usr/share/doc/clippy/README.md
/usr/share/licenses/clippy
/usr/share/licenses/clippy/LICENSE-APACHE
/usr/share/licenses/clippy/LICENSE-MIT
References
Summary
In this tutorial we learn how to install clippy on Rocky Linux 8 using yum and dnf.