How To Install rust-hostname-devel on Fedora 36

In this tutorial we learn how to install rust-hostname-devel in Fedora 36. rust-hostname-devel is Cross-platform system’s host name functions

Introduction

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

What is rust-hostname-devel

Cross-platform system’s host name functions. This package contains library source intended for building other packages which use “hostname” crate.

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

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

sudo dnf -y install rust-hostname-devel

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

sudo yum -y install rust-hostname-devel

How To Uninstall rust-hostname-devel on Fedora 36

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

sudo dnf remove rust-hostname-devel

rust-hostname-devel Package Contents on Fedora 36

/usr/share/cargo/registry/hostname-0.3.1
/usr/share/cargo/registry/hostname-0.3.1/.cargo-checksum.json
/usr/share/cargo/registry/hostname-0.3.1/CHANGELOG.md
/usr/share/cargo/registry/hostname-0.3.1/Cargo.toml
/usr/share/cargo/registry/hostname-0.3.1/LICENSE
/usr/share/cargo/registry/hostname-0.3.1/README.md
/usr/share/cargo/registry/hostname-0.3.1/examples
/usr/share/cargo/registry/hostname-0.3.1/examples/hostname.rs
/usr/share/cargo/registry/hostname-0.3.1/src
/usr/share/cargo/registry/hostname-0.3.1/src/lib.rs
/usr/share/cargo/registry/hostname-0.3.1/src/nix.rs
/usr/share/cargo/registry/hostname-0.3.1/src/windows.rs
/usr/share/cargo/registry/hostname-0.3.1/tests
/usr/share/cargo/registry/hostname-0.3.1/tests/version.rs
/usr/share/doc/rust-hostname-devel
/usr/share/doc/rust-hostname-devel/README.md
/usr/share/licenses/rust-hostname-devel
/usr/share/licenses/rust-hostname-devel/LICENSE

References

Summary

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