How To Install rust-cargo-husky+user-hooks-devel on Fedora 36

In this tutorial we learn how to install rust-cargo-husky+user-hooks-devel in Fedora 36. rust-cargo-husky+user-hooks-devel is Husky for cargo

Introduction

In this tutorial we learn how to install rust-cargo-husky+user-hooks-devel on Fedora 36.

What is rust-cargo-husky+user-hooks-devel

cargo-husky is a development tool to set Git hooks automatically on cargo test. By hooking pre-push and running cargo test automatically, it prevents broken codes from being pushed to a remote repository. This package contains library source intended for building other packages which use “user-hooks” feature of “cargo-husky” crate.

We can use yum or dnf to install rust-cargo-husky+user-hooks-devel on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rust-cargo-husky+user-hooks-devel.

Install rust-cargo-husky+user-hooks-devel on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install rust-cargo-husky+user-hooks-devel using dnf by running the following command:

sudo dnf -y install rust-cargo-husky+user-hooks-devel

Install rust-cargo-husky+user-hooks-devel on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install rust-cargo-husky+user-hooks-devel using yum by running the following command:

sudo yum -y install rust-cargo-husky+user-hooks-devel

How To Uninstall rust-cargo-husky+user-hooks-devel on Fedora 36

To uninstall only the rust-cargo-husky+user-hooks-devel package we can use the following command:

sudo dnf remove rust-cargo-husky+user-hooks-devel

rust-cargo-husky+user-hooks-devel Package Contents on Fedora 36

/usr/share/cargo/registry/cargo-husky-1.5.0/Cargo.toml

References

Summary

In this tutorial we learn how to install rust-cargo-husky+user-hooks-devel on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).