How To Install rust-mockito-devel on Fedora 36

In this tutorial we learn how to install rust-mockito-devel in Fedora 36. rust-mockito-devel is HTTP mocking for Rust

Introduction

In this tutorial we learn how to install rust-mockito-devel on Fedora 36.

What is rust-mockito-devel

HTTP mocking for Rust. This package contains library source intended for building other packages which use “mockito” crate.

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

Install rust-mockito-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-mockito-devel using dnf by running the following command:

sudo dnf -y install rust-mockito-devel

Install rust-mockito-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-mockito-devel using yum by running the following command:

sudo yum -y install rust-mockito-devel

How To Uninstall rust-mockito-devel on Fedora 36

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

sudo dnf remove rust-mockito-devel

rust-mockito-devel Package Contents on Fedora 36

/usr/share/cargo/registry/mockito-0.30.0
/usr/share/cargo/registry/mockito-0.30.0/.cargo-checksum.json
/usr/share/cargo/registry/mockito-0.30.0/Cargo.toml
/usr/share/cargo/registry/mockito-0.30.0/LICENSE
/usr/share/cargo/registry/mockito-0.30.0/README.md
/usr/share/cargo/registry/mockito-0.30.0/benches
/usr/share/cargo/registry/mockito-0.30.0/benches/lib.rs
/usr/share/cargo/registry/mockito-0.30.0/examples
/usr/share/cargo/registry/mockito-0.30.0/examples/mockito-server.rs
/usr/share/cargo/registry/mockito-0.30.0/src
/usr/share/cargo/registry/mockito-0.30.0/src/diff.rs
/usr/share/cargo/registry/mockito-0.30.0/src/lib.rs
/usr/share/cargo/registry/mockito-0.30.0/src/request.rs
/usr/share/cargo/registry/mockito-0.30.0/src/response.rs
/usr/share/cargo/registry/mockito-0.30.0/src/server.rs
/usr/share/cargo/registry/mockito-0.30.0/tests
/usr/share/cargo/registry/mockito-0.30.0/tests/files
/usr/share/cargo/registry/mockito-0.30.0/tests/files/simple.http
/usr/share/cargo/registry/mockito-0.30.0/tests/files/test_payload.bin
/usr/share/cargo/registry/mockito-0.30.0/tests/lib.rs
/usr/share/doc/rust-mockito-devel
/usr/share/doc/rust-mockito-devel/README.md
/usr/share/licenses/rust-mockito-devel
/usr/share/licenses/rust-mockito-devel/LICENSE

References

Summary

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