How To Install ocaml-mdx on Fedora 36
Introduction
In this tutorial we learn how to install ocaml-mdx
on Fedora 36.
What is ocaml-mdx
mdx enables execution of code blocks inside markdown files. There are (currently) two sub-commands, corresponding to two modes of operation preprocessing (
ocaml-mdx pp
) and tests (ocaml-mdx test
). The preprocessor mode enables mixing documentation and code, and the practice of “literate programming” using markdown and OCaml. The test mode enables ensuring that shell scripts and OCaml fragments in the documentation always stay up-to-date. The blocks in markdown files can be parameterized bymdx
-specific labels, that will change the waymdx
interprets the block. The syntax is separated by a comma. This line must immediately precede the block it is attached to.
We can use yum
or dnf
to install ocaml-mdx
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ocaml-mdx.
Install ocaml-mdx 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-mdx
using dnf
by running the following command:
title: “How To Install ocaml-mdx on Fedora 36”
linkTitle: "ocaml-mdx"
sudo dnf -y install ocaml-mdx
type: "docs"
Install ocaml-mdx on Fedora 36 Using yum
description: “In this tutorial we learn how to install ocaml-mdx in Fedora 36. ocaml-mdx is Executable code blocks inside markdown files”
Update yum database with yum
using the following command.
date: “2022-08-17”
lastmod: “2022-08-17”
sudo yum makecache --refresh
#image: /images/fedora/36/ocaml-mdx-featured.png
Introduction
After updating yum database, We can install ocaml-mdx
using yum
by running the following command:
sudo yum -y install ocaml-mdx
In this tutorial we learn how to install `ocaml-mdx` on Fedora 36.
How To Uninstall ocaml-mdx on Fedora 36
To uninstall only the ocaml-mdx
package we can use the following command:
sudo dnf remove ocaml-mdx
What is ocaml-mdx
ocaml-mdx Package Contents on Fedora 36
> mdx enables execution of code blocks inside markdown files. There are (currently) two sub-commands, corresponding to two modes of operation preprocessing (`ocaml-mdx pp`) and tests (`ocaml-mdx test`). The preprocessor mode enables mixing documentation and code, and the practice of "literate programming" using markdown and OCaml. The test mode enables ensuring that shell scripts and OCaml fragments in the documentation always stay up-to-date. The blocks in markdown files can be parameterized by `mdx`-specific labels, that will change the way `mdx` interprets the block. The syntax is separated by a comma. This line must immediately precede the block it is attached to.
We can use `yum` or `dnf` to install `ocaml-mdx` on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ocaml-mdx.
## Install ocaml-mdx 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-mdx
using dnf
by running the following command:
sudo dnf -y install ocaml-mdx
Install ocaml-mdx 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-mdx
using yum
by running the following command:
sudo yum -y install ocaml-mdx
How To Uninstall ocaml-mdx on Fedora 36
To uninstall only the ocaml-mdx
package we can use the following command:
sudo dnf remove ocaml-mdx
ocaml-mdx Package Contents on Fedora 36
/usr/bin/ocaml-mdx
/usr/bin/ocaml-mdx-test
/usr/lib/.build-id
/usr/lib/.build-id/13
/usr/lib/.build-id/13/f2a3b526e8fed63b0373e244f78853cd5faa9c
/usr/lib/.build-id/97
/usr/lib/.build-id/97/d47cf26e374529b0db72ed266eff8e9e0e9085
/usr/lib/ocaml/mdx
/usr/lib/ocaml/mdx/META
/usr/lib/ocaml/mdx/mdx.cma
/usr/lib/ocaml/mdx/mdx.cmi
/usr/lib/ocaml/mdx/mdx.cmxs
/usr/lib/ocaml/mdx/mdx__.cmi
/usr/lib/ocaml/mdx/mdx__Block.cmi
/usr/lib/ocaml/mdx/mdx__Compat.cmi
/usr/lib/ocaml/mdx/mdx__Cram.cmi
/usr/lib/ocaml/mdx/mdx__Dep.cmi
/usr/lib/ocaml/mdx/mdx__Deprecated.cmi
/usr/lib/ocaml/mdx/mdx__Document.cmi
/usr/lib/ocaml/mdx/mdx__Label.cmi
/usr/lib/ocaml/mdx/mdx__Lexer_cram.cmi
/usr/lib/ocaml/mdx/mdx__Lexer_mdx.cmi
/usr/lib/ocaml/mdx/mdx__Lexer_top.cmi
/usr/lib/ocaml/mdx/mdx__Library.cmi
/usr/lib/ocaml/mdx/mdx__Misc.cmi
/usr/lib/ocaml/mdx/mdx__Mli_parser.cmi
/usr/lib/ocaml/mdx/mdx__Ocaml_delimiter.cmi
/usr/lib/ocaml/mdx/mdx__Ocaml_env.cmi
/usr/lib/ocaml/mdx/mdx__Output.cmi
/usr/lib/ocaml/mdx/mdx__Part.cmi
/usr/lib/ocaml/mdx/mdx__Prelude.cmi
/usr/lib/ocaml/mdx/mdx__Stable_printer.cmi
/usr/lib/ocaml/mdx/mdx__Syntax.cmi
/usr/lib/ocaml/mdx/mdx__Toplevel.cmi
/usr/lib/ocaml/mdx/mdx__Util.cmi
/usr/lib/ocaml/mdx/test
/usr/lib/ocaml/mdx/test/mdx_test.cma
/usr/lib/ocaml/mdx/test/mdx_test.cmi
/usr/lib/ocaml/mdx/top
/usr/lib/ocaml/mdx/top/mdx_top.cma
/usr/lib/ocaml/mdx/top/mdx_top.cmi
/usr/lib/ocaml/mdx/top/mdx_top__.cmi
/usr/lib/ocaml/mdx/top/mdx_top__Compat_top.cmi
/usr/share/doc/ocaml-mdx
/usr/share/doc/ocaml-mdx/CHANGES.md
/usr/share/doc/ocaml-mdx/README.md
/usr/share/licenses/ocaml-mdx
/usr/share/licenses/ocaml-mdx/LICENSE.md
References
Summary
In this tutorial we learn how to install ocaml-mdx
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).
/usr/bin/ocaml-mdx
/usr/bin/ocaml-mdx-test
/usr/lib/.build-id
/usr/lib/.build-id/54
/usr/lib/.build-id/54/1322f244ea7c8a55d1c4abf5b2eca6924f29a0
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/a8dde8a578f709ec033f7c8490dcec39c6e1e8
/usr/lib64/ocaml/mdx
/usr/lib64/ocaml/mdx/META
/usr/lib64/ocaml/mdx/mdx.cma
/usr/lib64/ocaml/mdx/mdx.cmi
/usr/lib64/ocaml/mdx/mdx.cmxs
/usr/lib64/ocaml/mdx/mdx__.cmi
/usr/lib64/ocaml/mdx/mdx__Block.cmi
/usr/lib64/ocaml/mdx/mdx__Compat.cmi
/usr/lib64/ocaml/mdx/mdx__Cram.cmi
/usr/lib64/ocaml/mdx/mdx__Dep.cmi
/usr/lib64/ocaml/mdx/mdx__Deprecated.cmi
/usr/lib64/ocaml/mdx/mdx__Document.cmi
/usr/lib64/ocaml/mdx/mdx__Label.cmi
/usr/lib64/ocaml/mdx/mdx__Lexer_cram.cmi
/usr/lib64/ocaml/mdx/mdx__Lexer_mdx.cmi
/usr/lib64/ocaml/mdx/mdx__Lexer_top.cmi
/usr/lib64/ocaml/mdx/mdx__Library.cmi
/usr/lib64/ocaml/mdx/mdx__Misc.cmi
/usr/lib64/ocaml/mdx/mdx__Mli_parser.cmi
/usr/lib64/ocaml/mdx/mdx__Ocaml_delimiter.cmi
/usr/lib64/ocaml/mdx/mdx__Ocaml_env.cmi
/usr/lib64/ocaml/mdx/mdx__Output.cmi
/usr/lib64/ocaml/mdx/mdx__Part.cmi
/usr/lib64/ocaml/mdx/mdx__Prelude.cmi
/usr/lib64/ocaml/mdx/mdx__Stable_printer.cmi
/usr/lib64/ocaml/mdx/mdx__Syntax.cmi
/usr/lib64/ocaml/mdx/mdx__Toplevel.cmi
/usr/lib64/ocaml/mdx/mdx__Util.cmi
/usr/lib64/ocaml/mdx/test
/usr/lib64/ocaml/mdx/test/mdx_test.cma
/usr/lib64/ocaml/mdx/test/mdx_test.cmi
/usr/lib64/ocaml/mdx/top
/usr/lib64/ocaml/mdx/top/mdx_top.cma
/usr/lib64/ocaml/mdx/top/mdx_top.cmi
/usr/lib64/ocaml/mdx/top/mdx_top__.cmi
/usr/lib64/ocaml/mdx/top/mdx_top__Compat_top.cmi
/usr/share/doc/ocaml-mdx
/usr/share/doc/ocaml-mdx/CHANGES.md
/usr/share/doc/ocaml-mdx/README.md
/usr/share/licenses/ocaml-mdx
/usr/share/licenses/ocaml-mdx/LICENSE.md
## References
* [ocaml-mdx website](https://realworldocaml.github.io/mdx/)
## Summary
In this tutorial we learn how to install `ocaml-mdx` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).