How To Install ocaml-yojson on Fedora 36

In this tutorial we learn how to install ocaml-yojson in Fedora 36. ocaml-yojson is An optimized parsing and printing library for the JSON format

Introduction

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

What is ocaml-yojson

Yojson is an optimized parsing and printing library for the JSON format. It addresses a few shortcomings of json-wheel including 2x speedup, polymorphic variants and optional syntax for tuples and variants. ydump is a pretty-printing command-line program provided with the yojson package. The program atdgen can be used to derive OCaml-JSON serializers and deserializers from type definitions.

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

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

sudo dnf -y install ocaml-yojson

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

sudo yum -y install ocaml-yojson

How To Uninstall ocaml-yojson on Fedora 36

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

sudo dnf remove ocaml-yojson

ocaml-yojson Package Contents on Fedora 36

/usr/bin/ydump
/usr/lib/.build-id
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/82040b29f9eff22b3f4e33eac1bc8748275027
/usr/lib/.build-id/68
/usr/lib/.build-id/68/fdc682b0baf4cb9f33d6f792babbd65c345a0a
/usr/lib/ocaml/yojson
/usr/lib/ocaml/yojson/META
/usr/lib/ocaml/yojson/dune-package
/usr/lib/ocaml/yojson/opam
/usr/lib/ocaml/yojson/yojson.cma
/usr/lib/ocaml/yojson/yojson.cmi
/usr/lib/ocaml/yojson/yojson.cmt
/usr/lib/ocaml/yojson/yojson.cmti
/usr/lib/ocaml/yojson/yojson.cmxs
/usr/lib/ocaml/yojson/yojson_biniou.cmi
/usr/lib/ocaml/yojson/yojson_biniou.cmt
/usr/lib/ocaml/yojson/yojson_biniou.cmti
/usr/share/doc/ocaml-yojson
/usr/share/doc/ocaml-yojson/README.md
/usr/share/licenses/ocaml-yojson
/usr/share/licenses/ocaml-yojson/LICENSE.md

References

Summary

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


title: “How To Install ocaml-yojson on Fedora 36” linkTitle: “ocaml-yojson” type: “docs” description: “In this tutorial we learn how to install ocaml-yojson in Fedora 36. ocaml-yojson is An optimized parsing and printing library for the JSON format” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/ocaml-yojson-featured.png

Introduction

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

What is ocaml-yojson

Yojson is an optimized parsing and printing library for the JSON format. It addresses a few shortcomings of json-wheel including 2x speedup, polymorphic variants and optional syntax for tuples and variants. ydump is a pretty-printing command-line program provided with the yojson package. The program atdgen can be used to derive OCaml-JSON serializers and deserializers from type definitions.

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

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

sudo dnf -y install ocaml-yojson

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

sudo yum -y install ocaml-yojson

How To Uninstall ocaml-yojson on Fedora 36

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

sudo dnf remove ocaml-yojson

ocaml-yojson Package Contents on Fedora 36

/usr/bin/ydump
/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/bfe16264919b613dabc8ee1d976729c51b24bc
/usr/lib/.build-id/bf
/usr/lib/.build-id/bf/7f349cb97543db1eeba4912fd62b5755dc80b9
/usr/lib64/ocaml/yojson
/usr/lib64/ocaml/yojson/META
/usr/lib64/ocaml/yojson/dune-package
/usr/lib64/ocaml/yojson/opam
/usr/lib64/ocaml/yojson/yojson.cma
/usr/lib64/ocaml/yojson/yojson.cmi
/usr/lib64/ocaml/yojson/yojson.cmt
/usr/lib64/ocaml/yojson/yojson.cmti
/usr/lib64/ocaml/yojson/yojson.cmxs
/usr/lib64/ocaml/yojson/yojson_biniou.cmi
/usr/lib64/ocaml/yojson/yojson_biniou.cmt
/usr/lib64/ocaml/yojson/yojson_biniou.cmti
/usr/share/doc/ocaml-yojson
/usr/share/doc/ocaml-yojson/README.md
/usr/share/licenses/ocaml-yojson
/usr/share/licenses/ocaml-yojson/LICENSE.md

References

Summary

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