How To Install ocaml-cmdliner on Fedora 36

In this tutorial we learn how to install ocaml-cmdliner in Fedora 36. ocaml-cmdliner is Declarative definition of command line interfaces for OCaml

Introduction

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

What is ocaml-cmdliner

Cmdliner allows the declarative definition of command line interfaces for OCaml. It provides a simple and compositional mechanism to convert command line arguments to OCaml values and pass them to your functions. The module automatically handles syntax errors, help messages and UNIX man page generation. It supports programs with single or multiple commands and respects most of the POSIX and GNU conventions. Cmdliner has no dependencies and is distributed under the ISC license.

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

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

sudo dnf -y install ocaml-cmdliner

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

sudo yum -y install ocaml-cmdliner

How To Uninstall ocaml-cmdliner on Fedora 36

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

sudo dnf remove ocaml-cmdliner

ocaml-cmdliner Package Contents on Fedora 36

---
title: "How To Install ocaml-cmdliner on Fedora 36"
linkTitle: "ocaml-cmdliner"
type: "docs"
description: "In this tutorial we learn how to install ocaml-cmdliner in Fedora 36. ocaml-cmdliner is Declarative definition of command line interfaces for OCaml"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/ocaml-cmdliner-featured.png
---

## Introduction

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

### What is `ocaml-cmdliner`

> Cmdliner allows the declarative definition of command line interfaces for OCaml.  It provides a simple and compositional mechanism to convert command line arguments to OCaml values and pass them to your functions. The module automatically handles syntax errors, help messages and UNIX man page generation. It supports programs with single or multiple commands and respects most of the POSIX and GNU conventions.  Cmdliner has no dependencies and is distributed under the ISC license.  

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

## Install ocaml-cmdliner on Fedora 36 Using dnf

Update yum database with `dnf` using the following command.

```bash
sudo dnf makecache --refresh

After updating yum database, We can install ocaml-cmdliner using dnf by running the following command:

sudo dnf -y install ocaml-cmdliner

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

sudo yum -y install ocaml-cmdliner

How To Uninstall ocaml-cmdliner on Fedora 36

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

sudo dnf remove ocaml-cmdliner

ocaml-cmdliner Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/5d1a3c1339f9559f9d586ee52e3cf6191e9cf7
/usr/lib64/ocaml/cmdliner
/usr/lib64/ocaml/cmdliner/META
/usr/lib64/ocaml/cmdliner/cmdliner.cma
/usr/lib64/ocaml/cmdliner/cmdliner.cmi
/usr/lib64/ocaml/cmdliner/cmdliner.cmti
/usr/lib64/ocaml/cmdliner/cmdliner.cmxs
/usr/lib64/ocaml/cmdliner/opam
/usr/share/doc/ocaml-cmdliner
/usr/share/doc/ocaml-cmdliner/CHANGES.md
/usr/share/doc/ocaml-cmdliner/README.md
/usr/share/licenses/ocaml-cmdliner
/usr/share/licenses/ocaml-cmdliner/LICENSE.md

References

Summary

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

/usr/lib/.build-id /usr/lib/.build-id/5e /usr/lib/.build-id/5e/e86850954033eb31e0b7f7d21470bfd488f961 /usr/lib/ocaml/cmdliner /usr/lib/ocaml/cmdliner/META /usr/lib/ocaml/cmdliner/cmdliner.cma /usr/lib/ocaml/cmdliner/cmdliner.cmi /usr/lib/ocaml/cmdliner/cmdliner.cmti /usr/lib/ocaml/cmdliner/cmdliner.cmxs /usr/lib/ocaml/cmdliner/opam /usr/share/doc/ocaml-cmdliner /usr/share/doc/ocaml-cmdliner/CHANGES.md /usr/share/doc/ocaml-cmdliner/README.md /usr/share/licenses/ocaml-cmdliner /usr/share/licenses/ocaml-cmdliner/LICENSE.md


## References

* [ocaml-cmdliner website](https://github.com/dbuenzli/cmdliner/)

## Summary

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