How To Install rust-onig_sys+posix-api-devel on Fedora 36

In this tutorial we learn how to install rust-onig_sys+posix-api-devel in Fedora 36. rust-onig_sys+posix-api-devel is onig_sys crate contains raw rust bindings to the oniguruma library

Introduction

In this tutorial we learn how to install rust-onig_sys+posix-api-devel on Fedora 36.

What is rust-onig_sys+posix-api-devel

onig_sys crate contains raw rust bindings to the oniguruma library. This crate exposes a set of unsafe functions which can then be used by other crates to create safe wrappers around Oniguruma. You probably don’t want to link to this crate directly; instead check out the onig crate. This package contains library source intended for building other packages which use “posix-api” feature of “onig_sys” crate.

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

Install rust-onig_sys+posix-api-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-onig_sys+posix-api-devel using dnf by running the following command:

sudo dnf -y install rust-onig_sys+posix-api-devel

Install rust-onig_sys+posix-api-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-onig_sys+posix-api-devel using yum by running the following command:

sudo yum -y install rust-onig_sys+posix-api-devel

How To Uninstall rust-onig_sys+posix-api-devel on Fedora 36

To uninstall only the rust-onig_sys+posix-api-devel package we can use the following command:

sudo dnf remove rust-onig_sys+posix-api-devel

rust-onig_sys+posix-api-devel Package Contents on Fedora 36

/usr/share/cargo/registry/onig_sys-69.7.1/Cargo.toml

References

Summary

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