How To Install utop on Fedora 34

utop is Improved toplevel for OCaml Improved toplevel for OCaml

Introduction

In this tutorial we learn how to install utop on Fedora 34.

What is utop

utop is an improved toplevel (i.e., Read-Eval-Print Loop) for OCaml. It can run in a terminal or in Emacs. It supports line editing, history, real-time and context sensitive completion, colors, and more. utop 2.7.0 3.fc34 x86_64 21 M utop-2.7.0-3.fc34.src.rpm fedora Improved toplevel for OCaml https BSD utop is an improved toplevel (i.e., Read-Eval-Print Loop) for OCaml. It can run in a terminal or in Emacs. It supports line editing, history, real-time and context sensitive completion, colors, and more.

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

Install utop on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install utop

Install utop on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install utop using yum by running the following command:

sudo yum -y install utop

How To Uninstall utop on Fedora 34

To uninstall only the utop package we can use the following command:

sudo dnf remove utop

utop Package Contents on Fedora 34

/usr/bin/utop
/usr/bin/utop-full
/usr/lib/ocaml/utop
/usr/lib/ocaml/utop/META
/usr/lib/ocaml/utop/dune-package
/usr/lib/ocaml/utop/opam
/usr/lib/ocaml/utop/uTop.cma
/usr/lib/ocaml/utop/uTop.cmi
/usr/lib/ocaml/utop/uTop.cmt
/usr/lib/ocaml/utop/uTop.cmti
/usr/lib/ocaml/utop/uTop.ml
/usr/lib/ocaml/utop/uTop_complete.cmi
/usr/lib/ocaml/utop/uTop_complete.cmt
/usr/lib/ocaml/utop/uTop_complete.cmti
/usr/lib/ocaml/utop/uTop_complete.ml
/usr/lib/ocaml/utop/uTop_history.cmi
/usr/lib/ocaml/utop/uTop_history.cmt
/usr/lib/ocaml/utop/uTop_history.cmti
/usr/lib/ocaml/utop/uTop_history.ml
/usr/lib/ocaml/utop/uTop_lexer.cmi
/usr/lib/ocaml/utop/uTop_lexer.cmt
/usr/lib/ocaml/utop/uTop_lexer.cmti
/usr/lib/ocaml/utop/uTop_lexer.ml
/usr/lib/ocaml/utop/uTop_main.cmi
/usr/lib/ocaml/utop/uTop_main.cmt
/usr/lib/ocaml/utop/uTop_main.cmti
/usr/lib/ocaml/utop/uTop_main.ml
/usr/lib/ocaml/utop/uTop_private.cmi
/usr/lib/ocaml/utop/uTop_private.cmt
/usr/lib/ocaml/utop/uTop_private.ml
/usr/lib/ocaml/utop/uTop_styles.cmi
/usr/lib/ocaml/utop/uTop_styles.cmt
/usr/lib/ocaml/utop/uTop_styles.cmti
/usr/lib/ocaml/utop/uTop_styles.ml
/usr/lib/ocaml/utop/uTop_token.cmi
/usr/lib/ocaml/utop/uTop_token.cmt
/usr/lib/ocaml/utop/uTop_token.ml
/usr/share/doc/utop
/usr/share/doc/utop/CHANGES.md
/usr/share/doc/utop/README.md
/usr/share/emacs/site-lisp/utop.el
/usr/share/licenses/utop
/usr/share/licenses/utop/LICENSE
/usr/share/man/man1/utop-full.1.gz
/usr/share/man/man1/utop.1.gz
/usr/share/man/man5/utoprc.5.gz
/usr/share/utop
/usr/share/utop/utoprc-dark
/usr/share/utop/utoprc-light
/usr/bin/utop
/usr/bin/utop-full
/usr/lib64/ocaml/utop
/usr/lib64/ocaml/utop/META
/usr/lib64/ocaml/utop/dune-package
/usr/lib64/ocaml/utop/opam
/usr/lib64/ocaml/utop/uTop.cma
/usr/lib64/ocaml/utop/uTop.cmi
/usr/lib64/ocaml/utop/uTop.cmt
/usr/lib64/ocaml/utop/uTop.cmti
/usr/lib64/ocaml/utop/uTop.ml
/usr/lib64/ocaml/utop/uTop_complete.cmi
/usr/lib64/ocaml/utop/uTop_complete.cmt
/usr/lib64/ocaml/utop/uTop_complete.cmti
/usr/lib64/ocaml/utop/uTop_complete.ml
/usr/lib64/ocaml/utop/uTop_history.cmi
/usr/lib64/ocaml/utop/uTop_history.cmt
/usr/lib64/ocaml/utop/uTop_history.cmti
/usr/lib64/ocaml/utop/uTop_history.ml
/usr/lib64/ocaml/utop/uTop_lexer.cmi
/usr/lib64/ocaml/utop/uTop_lexer.cmt
/usr/lib64/ocaml/utop/uTop_lexer.cmti
/usr/lib64/ocaml/utop/uTop_lexer.ml
/usr/lib64/ocaml/utop/uTop_main.cmi
/usr/lib64/ocaml/utop/uTop_main.cmt
/usr/lib64/ocaml/utop/uTop_main.cmti
/usr/lib64/ocaml/utop/uTop_main.ml
/usr/lib64/ocaml/utop/uTop_private.cmi
/usr/lib64/ocaml/utop/uTop_private.cmt
/usr/lib64/ocaml/utop/uTop_private.ml
/usr/lib64/ocaml/utop/uTop_styles.cmi
/usr/lib64/ocaml/utop/uTop_styles.cmt
/usr/lib64/ocaml/utop/uTop_styles.cmti
/usr/lib64/ocaml/utop/uTop_styles.ml
/usr/lib64/ocaml/utop/uTop_token.cmi
/usr/lib64/ocaml/utop/uTop_token.cmt
/usr/lib64/ocaml/utop/uTop_token.ml
/usr/share/doc/utop
/usr/share/doc/utop/CHANGES.md
/usr/share/doc/utop/README.md
/usr/share/emacs/site-lisp/utop.el
/usr/share/licenses/utop
/usr/share/licenses/utop/LICENSE
/usr/share/man/man1/utop-full.1.gz
/usr/share/man/man1/utop.1.gz
/usr/share/man/man5/utoprc.5.gz
/usr/share/utop
/usr/share/utop/utoprc-dark
/usr/share/utop/utoprc-light

References

Summary

In this tutorial we learn how to install utop on Fedora 34 using yum and dnf.