How To Install ocaml-postgresql on Fedora 36
Introduction
In this tutorial we learn how to install ocaml-postgresql
on Fedora 36.
What is ocaml-postgresql
This OCaml-library provides an interface to PostgreSQL, an efficient and reliable, open source, relational database. Almost all functionality available through the C-API (libpq) is replicated in a type-safe way. This library uses objects for representing database connections and results of queries.
We can use yum
or dnf
to install ocaml-postgresql
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ocaml-postgresql.
Install ocaml-postgresql 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-postgresql
using dnf
by running the following command:
sudo dnf -y install ocaml-postgresql
Install ocaml-postgresql 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-postgresql
using yum
by running the following command:
sudo yum -y install ocaml-postgresql
How To Uninstall ocaml-postgresql on Fedora 36
To uninstall only the ocaml-postgresql
package we can use the following command:
sudo dnf remove ocaml-postgresql
ocaml-postgresql Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/36
/usr/lib/.build-id/36/51e42a6872ca0b603f37c46c14e1bc911a03da
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/40502af6cb04d58a971adb5f60e4c7d210c0eb
/usr/lib64/ocaml/postgresql
/usr/lib64/ocaml/postgresql/META
/usr/lib64/ocaml/postgresql/postgresql.annot
/usr/lib64/ocaml/postgresql/postgresql.cma
/usr/lib64/ocaml/postgresql/postgresql.cmi
/usr/lib64/ocaml/postgresql/postgresql.cmt
/usr/lib64/ocaml/postgresql/postgresql.cmti
/usr/lib64/ocaml/postgresql/postgresql.cmx
/usr/lib64/ocaml/postgresql/postgresql.cmxs
/usr/lib64/ocaml/postgresql/postgresql_compat.cmx
/usr/lib64/ocaml/stublibs/dllpostgresql_stubs.so
/usr/lib64/ocaml/stublibs/dllpostgresql_stubs.so.owner
/usr/share/doc/ocaml-postgresql
/usr/share/doc/ocaml-postgresql/COPYING.txt
References
Summary
In this tutorial we learn how to install ocaml-postgresql
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).