How To Install ocaml-ocp-indent on Fedora 36

In this tutorial we learn how to install ocaml-ocp-indent in Fedora 36. ocaml-ocp-indent is A simple tool to indent OCaml programs

Introduction

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

What is ocaml-ocp-indent

Ocp-indent is a simple tool and library to indent OCaml code. It is based on an approximate, tolerant OCaml parser and a simple stack machine; this is much faster and more reliable than using regexps. Presets and configuration options are available, with the possibility to set them project-wide. Ocp-indent supports most common syntax extensions, and is extensible for others. Includes - An indentor program, callable from the command-line or from within editors - Bindings for popular editors - A library that can be directly used by editor writers, or just for fault-tolerant/approximate parsing.

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

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

sudo dnf -y install ocaml-ocp-indent

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

sudo yum -y install ocaml-ocp-indent

How To Uninstall ocaml-ocp-indent on Fedora 36

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

sudo dnf remove ocaml-ocp-indent

ocaml-ocp-indent Package Contents on Fedora 36

/usr/bin/ocp-indent
/usr/lib/.build-id
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/a314511636214850203fbce4360a1d7bd13d35
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/9b7e5d785e05422603ae29890f833291adf718
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/b4d8221ec27b5b7ee684c789be5a85e96a723a
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/32e9e3a5e510f9a2f38aca3b0de141c5d910fb
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/e13c82f7e4d2a165e42f2b5fa60784fa81a8cb
/usr/lib/ocaml/ocp-indent
/usr/lib/ocaml/ocp-indent/META
/usr/lib/ocaml/ocp-indent/dynlink
/usr/lib/ocaml/ocp-indent/dynlink/indentLoader.cmi
/usr/lib/ocaml/ocp-indent/dynlink/ocp_indent_dynlink.cma
/usr/lib/ocaml/ocp-indent/dynlink/ocp_indent_dynlink.cmxs
/usr/lib/ocaml/ocp-indent/lexer
/usr/lib/ocaml/ocp-indent/lexer/approx_lexer.cmi
/usr/lib/ocaml/ocp-indent/lexer/approx_tokens.cmi
/usr/lib/ocaml/ocp-indent/lexer/indentExtend.cmi
/usr/lib/ocaml/ocp-indent/lexer/ocp_indent_lexer.cma
/usr/lib/ocaml/ocp-indent/lexer/ocp_indent_lexer.cmxs
/usr/lib/ocaml/ocp-indent/lib
/usr/lib/ocaml/ocp-indent/lib/indentBlock.cmi
/usr/lib/ocaml/ocp-indent/lib/indentConfig.cmi
/usr/lib/ocaml/ocp-indent/lib/indentPrinter.cmi
/usr/lib/ocaml/ocp-indent/lib/ocp_indent_lib.cma
/usr/lib/ocaml/ocp-indent/lib/ocp_indent_lib.cmxs
/usr/lib/ocaml/ocp-indent/utils
/usr/lib/ocaml/ocp-indent/utils/compat.cmi
/usr/lib/ocaml/ocp-indent/utils/nstream.cmi
/usr/lib/ocaml/ocp-indent/utils/ocp_indent_utils.cma
/usr/lib/ocaml/ocp-indent/utils/ocp_indent_utils.cmxs
/usr/lib/ocaml/ocp-indent/utils/pos.cmi
/usr/lib/ocaml/ocp-indent/utils/util.cmi
/usr/share/doc/ocaml-ocp-indent
/usr/share/doc/ocaml-ocp-indent/CHANGELOG
/usr/share/doc/ocaml-ocp-indent/README.md
/usr/share/emacs/site-lisp/ocp-indent.el
/usr/share/emacs/site-lisp/ocp-indent.elc
/usr/share/emacs/site-lisp/site-start.d/ocp-indent-autoloads.el
/usr/share/licenses/ocaml-ocp-indent
/usr/share/licenses/ocaml-ocp-indent/LICENSE
/usr/share/man/man1/ocp-indent.1.gz
/usr/share/vim/vimfiles/indent/ocaml.vim

References

Summary

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


title: “How To Install ocaml-ocp-indent on Fedora 36” linkTitle: “ocaml-ocp-indent” type: “docs” description: “In this tutorial we learn how to install ocaml-ocp-indent in Fedora 36. ocaml-ocp-indent is A simple tool to indent OCaml programs” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/ocaml-ocp-indent-featured.png

Introduction

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

What is ocaml-ocp-indent

Ocp-indent is a simple tool and library to indent OCaml code. It is based on an approximate, tolerant OCaml parser and a simple stack machine; this is much faster and more reliable than using regexps. Presets and configuration options are available, with the possibility to set them project-wide. Ocp-indent supports most common syntax extensions, and is extensible for others. Includes - An indentor program, callable from the command-line or from within editors - Bindings for popular editors - A library that can be directly used by editor writers, or just for fault-tolerant/approximate parsing.

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

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

sudo dnf -y install ocaml-ocp-indent

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

sudo yum -y install ocaml-ocp-indent

How To Uninstall ocaml-ocp-indent on Fedora 36

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

sudo dnf remove ocaml-ocp-indent

ocaml-ocp-indent Package Contents on Fedora 36

/usr/bin/ocp-indent
/usr/lib/.build-id
/usr/lib/.build-id/74
/usr/lib/.build-id/74/89feb0b060b6c3c53cfe309d7306c1b0bc1420
/usr/lib/.build-id/82
/usr/lib/.build-id/82/cd32127e3619bcc97c6da36f86b312b2b55dfd
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/d8a362bcfe3b86d80806c3e96ecb589b248ad3
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/7756bbdf8c9911d4e2cc98f7569b95dd0a41cc
/usr/lib/.build-id/db
/usr/lib/.build-id/db/7d17e5c5ae9750f147498e3ac16a9dbb1d2d59
/usr/lib64/ocaml/ocp-indent
/usr/lib64/ocaml/ocp-indent/META
/usr/lib64/ocaml/ocp-indent/dynlink
/usr/lib64/ocaml/ocp-indent/dynlink/indentLoader.cmi
/usr/lib64/ocaml/ocp-indent/dynlink/ocp_indent_dynlink.cma
/usr/lib64/ocaml/ocp-indent/dynlink/ocp_indent_dynlink.cmxs
/usr/lib64/ocaml/ocp-indent/lexer
/usr/lib64/ocaml/ocp-indent/lexer/approx_lexer.cmi
/usr/lib64/ocaml/ocp-indent/lexer/approx_tokens.cmi
/usr/lib64/ocaml/ocp-indent/lexer/indentExtend.cmi
/usr/lib64/ocaml/ocp-indent/lexer/ocp_indent_lexer.cma
/usr/lib64/ocaml/ocp-indent/lexer/ocp_indent_lexer.cmxs
/usr/lib64/ocaml/ocp-indent/lib
/usr/lib64/ocaml/ocp-indent/lib/indentBlock.cmi
/usr/lib64/ocaml/ocp-indent/lib/indentConfig.cmi
/usr/lib64/ocaml/ocp-indent/lib/indentPrinter.cmi
/usr/lib64/ocaml/ocp-indent/lib/ocp_indent_lib.cma
/usr/lib64/ocaml/ocp-indent/lib/ocp_indent_lib.cmxs
/usr/lib64/ocaml/ocp-indent/utils
/usr/lib64/ocaml/ocp-indent/utils/compat.cmi
/usr/lib64/ocaml/ocp-indent/utils/nstream.cmi
/usr/lib64/ocaml/ocp-indent/utils/ocp_indent_utils.cma
/usr/lib64/ocaml/ocp-indent/utils/ocp_indent_utils.cmxs
/usr/lib64/ocaml/ocp-indent/utils/pos.cmi
/usr/lib64/ocaml/ocp-indent/utils/util.cmi
/usr/share/doc/ocaml-ocp-indent
/usr/share/doc/ocaml-ocp-indent/CHANGELOG
/usr/share/doc/ocaml-ocp-indent/README.md
/usr/share/emacs/site-lisp/ocp-indent.el
/usr/share/emacs/site-lisp/ocp-indent.elc
/usr/share/emacs/site-lisp/site-start.d/ocp-indent-autoloads.el
/usr/share/licenses/ocaml-ocp-indent
/usr/share/licenses/ocaml-ocp-indent/LICENSE
/usr/share/man/man1/ocp-indent.1.gz
/usr/share/vim/vimfiles/indent/ocaml.vim

References

Summary

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