How To Install ocaml-mysql on Fedora 36

In this tutorial we learn how to install ocaml-mysql in Fedora 36. ocaml-mysql is OCaml library for accessing MySQL databases

Introduction

In this tutorial we learn how to install ocaml-mysql on Fedora 36.

What is ocaml-mysql

ocaml-mysql is a package for ocaml that provides access to mysql databases. It consists of low level functions implemented in C and a module Mysql intended for application development.

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

Install ocaml-mysql 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 ocaml-mysql using dnf by running the following command:

sudo dnf -y install ocaml-mysql

Install ocaml-mysql 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 ocaml-mysql using yum by running the following command:

sudo yum -y install ocaml-mysql

How To Uninstall ocaml-mysql on Fedora 36

To uninstall only the ocaml-mysql package we can use the following command:

sudo dnf remove ocaml-mysql

ocaml-mysql Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/11
/usr/lib/.build-id/11/5880562ed60664d9f7265fc7e7ca3aef966596
/usr/lib/.build-id/99
/usr/lib/.build-id/99/608978c55acad90e50ae69d3e31a63a27baba4
/usr/lib64/ocaml/mysql
/usr/lib64/ocaml/mysql/META
/usr/lib64/ocaml/mysql/mysql.cma
/usr/lib64/ocaml/mysql/mysql.cmi
/usr/lib64/ocaml/mysql/mysql.cmxs
/usr/lib64/ocaml/stublibs/dllmysql_stubs.so
/usr/lib64/ocaml/stublibs/dllmysql_stubs.so.owner
/usr/share/doc/ocaml-mysql
/usr/share/doc/ocaml-mysql/COPYING

References

Summary

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