How To Install ocaml on CentOS 8
Introduction
In this tutorial we learn how to install ocaml
on CentOS 8.
What is ocaml
OCaml is a high-level, strongly-typed, functional and object-oriented programming language from the ML family of languages. This package comprises two batch compilers (a fast bytecode compiler and an optimizing native-code compiler), an interactive toplevel system, parsing tools (Lex,Yacc), a replay debugger, a documentation generator, and a comprehensive library.
We can use yum
or dnf
to install ocaml
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install ocaml.
Install ocaml on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install ocaml
using dnf
by running the following command:
sudo dnf -y install ocaml
Install ocaml on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install ocaml
using yum
by running the following command:
sudo yum -y install ocaml
How To Uninstall ocaml on CentOS 8
To uninstall only the ocaml
package we can use the following command:
sudo dnf remove ocaml
ocaml Package Contents on CentOS 8
/usr/bin/ocaml
/usr/bin/ocaml-instr-graph
/usr/bin/ocaml-instr-report
/usr/bin/ocamlbyteinfo
/usr/bin/ocamlc
/usr/bin/ocamlc.byte
/usr/bin/ocamlc.opt
/usr/bin/ocamlcmt
/usr/bin/ocamlcp
/usr/bin/ocamlcp.byte
/usr/bin/ocamlcp.opt
/usr/bin/ocamldebug
/usr/bin/ocamldep
/usr/bin/ocamldep.byte
/usr/bin/ocamldep.opt
/usr/bin/ocamllex
/usr/bin/ocamllex.byte
/usr/bin/ocamllex.opt
/usr/bin/ocamlmklib
/usr/bin/ocamlmklib.byte
/usr/bin/ocamlmklib.opt
/usr/bin/ocamlmktop
/usr/bin/ocamlmktop.byte
/usr/bin/ocamlmktop.opt
/usr/bin/ocamlobjinfo
/usr/bin/ocamlobjinfo.byte
/usr/bin/ocamlobjinfo.opt
/usr/bin/ocamlopt
/usr/bin/ocamlopt.byte
/usr/bin/ocamlopt.opt
/usr/bin/ocamloptp
/usr/bin/ocamloptp.byte
/usr/bin/ocamloptp.opt
/usr/bin/ocamlprof
/usr/bin/ocamlprof.byte
/usr/bin/ocamlprof.opt
/usr/bin/ocamlyacc
/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/71600db11db94408f2471e4b1da20504ffa55c
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/18c2fe8dccf5064d761c53755017ca5cd7e46b
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/27dfacd06148115d24195cfa8ac1eb6fca1c7c
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/1a71f9ae09a19cd772e9d9b3d69c7560787ce6
/usr/lib/.build-id/63
/usr/lib/.build-id/63/5f9a8bab9d3fb2732253617e05cc6146ceb35d
/usr/lib/.build-id/63/9a42b016a2b6b510f9d633db6cbf36355848ef
/usr/lib/.build-id/80
/usr/lib/.build-id/80/c683a43bf8f12de56750e89ab38a8279ad53ad
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/1816d7c8bab39f033b4af1449daf50d30c4d91
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/100389164c1099dbf5e3f67074d9711398313d
/usr/lib/.build-id/96
/usr/lib/.build-id/96/43f0c0246174f3104b365eda285936ad10c56d
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/a979cdc975c8c003116d90f2b4e4655222cbd0
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/f3053e8ac2a33fce9aabdd4bb35656bc142de3
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/b4c7c0335e04d4bfff8de3814c09df32eef50a
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/9226c002f532e15ceb7d8b254099ec3454caef
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/ad527c42684ff5ea57b17d6c179250051432c2
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/4bfe9d38bcc33275833dfdcb094a92c0fd986b
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/8c1c07ffd76ec0a87a8008244dc2fe5fc8d5c1
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/4c6a86a65874064b983f31f0ff50738fbd6b03
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/49a822ff3fb300d16c97656f47ee83dfb128e5
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/3c4269f5c30585d33a46ec30b7a8cc182ad2b8
/usr/lib64/ocaml/Makefile.config
/usr/lib64/ocaml/arg.mli
/usr/lib64/ocaml/array.mli
/usr/lib64/ocaml/arrayLabels.mli
/usr/lib64/ocaml/bigarray.a
/usr/lib64/ocaml/bigarray.cmx
/usr/lib64/ocaml/bigarray.cmxa
/usr/lib64/ocaml/bigarray.cmxs
/usr/lib64/ocaml/bigarray.mli
/usr/lib64/ocaml/buffer.mli
/usr/lib64/ocaml/bytes.mli
/usr/lib64/ocaml/bytesLabels.mli
/usr/lib64/ocaml/callback.mli
/usr/lib64/ocaml/caml
/usr/lib64/ocaml/caml/address_class.h
/usr/lib64/ocaml/caml/alloc.h
/usr/lib64/ocaml/caml/backtrace.h
/usr/lib64/ocaml/caml/backtrace_prim.h
/usr/lib64/ocaml/caml/bigarray.h
/usr/lib64/ocaml/caml/callback.h
/usr/lib64/ocaml/caml/compact.h
/usr/lib64/ocaml/caml/compare.h
/usr/lib64/ocaml/caml/compatibility.h
/usr/lib64/ocaml/caml/config.h
/usr/lib64/ocaml/caml/custom.h
/usr/lib64/ocaml/caml/debugger.h
/usr/lib64/ocaml/caml/dynlink.h
/usr/lib64/ocaml/caml/exec.h
/usr/lib64/ocaml/caml/fail.h
/usr/lib64/ocaml/caml/finalise.h
/usr/lib64/ocaml/caml/fix_code.h
/usr/lib64/ocaml/caml/freelist.h
/usr/lib64/ocaml/caml/gc.h
/usr/lib64/ocaml/caml/gc_ctrl.h
/usr/lib64/ocaml/caml/globroots.h
/usr/lib64/ocaml/caml/hash.h
/usr/lib64/ocaml/caml/hooks.h
/usr/lib64/ocaml/caml/instrtrace.h
/usr/lib64/ocaml/caml/instruct.h
/usr/lib64/ocaml/caml/int64_emul.h
/usr/lib64/ocaml/caml/int64_format.h
/usr/lib64/ocaml/caml/int64_native.h
/usr/lib64/ocaml/caml/interp.h
/usr/lib64/ocaml/caml/intext.h
/usr/lib64/ocaml/caml/io.h
/usr/lib64/ocaml/caml/jumptbl.h
/usr/lib64/ocaml/caml/m.h
/usr/lib64/ocaml/caml/major_gc.h
/usr/lib64/ocaml/caml/md5.h
/usr/lib64/ocaml/caml/memory.h
/usr/lib64/ocaml/caml/minor_gc.h
/usr/lib64/ocaml/caml/misc.h
/usr/lib64/ocaml/caml/mlvalues.h
/usr/lib64/ocaml/caml/opnames.h
/usr/lib64/ocaml/caml/osdeps.h
/usr/lib64/ocaml/caml/prims.h
/usr/lib64/ocaml/caml/printexc.h
/usr/lib64/ocaml/caml/reverse.h
/usr/lib64/ocaml/caml/roots.h
/usr/lib64/ocaml/caml/s.h
/usr/lib64/ocaml/caml/signals.h
/usr/lib64/ocaml/caml/signals_machdep.h
/usr/lib64/ocaml/caml/socketaddr.h
/usr/lib64/ocaml/caml/spacetime.h
/usr/lib64/ocaml/caml/stack.h
/usr/lib64/ocaml/caml/stacks.h
/usr/lib64/ocaml/caml/startup.h
/usr/lib64/ocaml/caml/startup_aux.h
/usr/lib64/ocaml/caml/sys.h
/usr/lib64/ocaml/caml/threads.h
/usr/lib64/ocaml/caml/ui.h
/usr/lib64/ocaml/caml/unixsupport.h
/usr/lib64/ocaml/caml/version.h
/usr/lib64/ocaml/caml/weak.h
/usr/lib64/ocaml/camlheader
/usr/lib64/ocaml/camlheader_ur
/usr/lib64/ocaml/camlinternalFormat.cmx
/usr/lib64/ocaml/camlinternalFormat.mli
/usr/lib64/ocaml/camlinternalFormat.p.cmx
/usr/lib64/ocaml/camlinternalFormatBasics.cmx
/usr/lib64/ocaml/camlinternalFormatBasics.mli
/usr/lib64/ocaml/camlinternalFormatBasics.p.cmx
/usr/lib64/ocaml/camlinternalLazy.cmx
/usr/lib64/ocaml/camlinternalLazy.mli
/usr/lib64/ocaml/camlinternalLazy.p.cmx
/usr/lib64/ocaml/camlinternalMod.cmx
/usr/lib64/ocaml/camlinternalMod.mli
/usr/lib64/ocaml/camlinternalMod.p.cmx
/usr/lib64/ocaml/camlinternalOO.cmx
/usr/lib64/ocaml/camlinternalOO.mli
/usr/lib64/ocaml/camlinternalOO.p.cmx
/usr/lib64/ocaml/char.mli
/usr/lib64/ocaml/complex.mli
/usr/lib64/ocaml/condition.mli
/usr/lib64/ocaml/digest.mli
/usr/lib64/ocaml/dynlink.a
/usr/lib64/ocaml/dynlink.cmx
/usr/lib64/ocaml/dynlink.cmxa
/usr/lib64/ocaml/dynlink.mli
/usr/lib64/ocaml/ephemeron.mli
/usr/lib64/ocaml/event.mli
/usr/lib64/ocaml/expunge
/usr/lib64/ocaml/extract_crc
/usr/lib64/ocaml/filename.mli
/usr/lib64/ocaml/float.mli
/usr/lib64/ocaml/format.mli
/usr/lib64/ocaml/gc.mli
/usr/lib64/ocaml/genlex.mli
/usr/lib64/ocaml/graphics.a
/usr/lib64/ocaml/graphics.cmx
/usr/lib64/ocaml/graphics.cmxa
/usr/lib64/ocaml/graphics.cmxs
/usr/lib64/ocaml/graphics.mli
/usr/lib64/ocaml/graphicsX11.cmx
/usr/lib64/ocaml/hashtbl.mli
/usr/lib64/ocaml/int32.mli
/usr/lib64/ocaml/int64.mli
/usr/lib64/ocaml/lazy.mli
/usr/lib64/ocaml/ld.conf
/usr/lib64/ocaml/lexing.mli
/usr/lib64/ocaml/libasmrun.a
/usr/lib64/ocaml/libasmrun_pic.a
/usr/lib64/ocaml/libasmrun_shared.so
/usr/lib64/ocaml/libasmrund.a
/usr/lib64/ocaml/libasmruni.a
/usr/lib64/ocaml/libasmrunp.a
/usr/lib64/ocaml/libbigarray.a
/usr/lib64/ocaml/libcamlrun.a
/usr/lib64/ocaml/libcamlrun_pic.a
/usr/lib64/ocaml/libcamlrun_shared.so
/usr/lib64/ocaml/libcamlrund.a
/usr/lib64/ocaml/libcamlruni.a
/usr/lib64/ocaml/libcamlstr.a
/usr/lib64/ocaml/libgraphics.a
/usr/lib64/ocaml/libraw_spacetime_lib.a
/usr/lib64/ocaml/libthreads.a
/usr/lib64/ocaml/libthreadsnat.a
/usr/lib64/ocaml/libunix.a
/usr/lib64/ocaml/list.mli
/usr/lib64/ocaml/listLabels.mli
/usr/lib64/ocaml/map.mli
/usr/lib64/ocaml/marshal.mli
/usr/lib64/ocaml/moreLabels.mli
/usr/lib64/ocaml/mutex.mli
/usr/lib64/ocaml/nativeint.mli
/usr/lib64/ocaml/obj.mli
/usr/lib64/ocaml/objinfo_helper
/usr/lib64/ocaml/oo.mli
/usr/lib64/ocaml/parsing.mli
/usr/lib64/ocaml/printexc.mli
/usr/lib64/ocaml/printf.mli
/usr/lib64/ocaml/profiling.cmx
/usr/lib64/ocaml/profiling.o
/usr/lib64/ocaml/queue.mli
/usr/lib64/ocaml/random.mli
/usr/lib64/ocaml/raw_spacetime_lib.a
/usr/lib64/ocaml/raw_spacetime_lib.cmx
/usr/lib64/ocaml/raw_spacetime_lib.cmxa
/usr/lib64/ocaml/raw_spacetime_lib.cmxs
/usr/lib64/ocaml/raw_spacetime_lib.mli
/usr/lib64/ocaml/scanf.mli
/usr/lib64/ocaml/seq.mli
/usr/lib64/ocaml/set.mli
/usr/lib64/ocaml/sort.mli
/usr/lib64/ocaml/spacetime.mli
/usr/lib64/ocaml/stack.mli
/usr/lib64/ocaml/stdLabels.mli
/usr/lib64/ocaml/std_exit.cmx
/usr/lib64/ocaml/std_exit.o
/usr/lib64/ocaml/std_exit.p.cmx
/usr/lib64/ocaml/std_exit.p.o
/usr/lib64/ocaml/stdlib.a
/usr/lib64/ocaml/stdlib.cmx
/usr/lib64/ocaml/stdlib.cmxa
/usr/lib64/ocaml/stdlib.mli
/usr/lib64/ocaml/stdlib.p.a
/usr/lib64/ocaml/stdlib.p.cmx
/usr/lib64/ocaml/stdlib.p.cmxa
/usr/lib64/ocaml/stdlib__arg.cmx
/usr/lib64/ocaml/stdlib__arg.p.cmx
/usr/lib64/ocaml/stdlib__array.cmx
/usr/lib64/ocaml/stdlib__array.p.cmx
/usr/lib64/ocaml/stdlib__arrayLabels.cmx
/usr/lib64/ocaml/stdlib__arrayLabels.p.cmx
/usr/lib64/ocaml/stdlib__bigarray.cmx
/usr/lib64/ocaml/stdlib__bigarray.p.cmx
/usr/lib64/ocaml/stdlib__buffer.cmx
/usr/lib64/ocaml/stdlib__buffer.p.cmx
/usr/lib64/ocaml/stdlib__bytes.cmx
/usr/lib64/ocaml/stdlib__bytes.p.cmx
/usr/lib64/ocaml/stdlib__bytesLabels.cmx
/usr/lib64/ocaml/stdlib__bytesLabels.p.cmx
/usr/lib64/ocaml/stdlib__callback.cmx
/usr/lib64/ocaml/stdlib__callback.p.cmx
/usr/lib64/ocaml/stdlib__char.cmx
/usr/lib64/ocaml/stdlib__char.p.cmx
/usr/lib64/ocaml/stdlib__complex.cmx
/usr/lib64/ocaml/stdlib__complex.p.cmx
/usr/lib64/ocaml/stdlib__digest.cmx
/usr/lib64/ocaml/stdlib__digest.p.cmx
/usr/lib64/ocaml/stdlib__ephemeron.cmx
/usr/lib64/ocaml/stdlib__ephemeron.p.cmx
/usr/lib64/ocaml/stdlib__filename.cmx
/usr/lib64/ocaml/stdlib__filename.p.cmx
/usr/lib64/ocaml/stdlib__float.cmx
/usr/lib64/ocaml/stdlib__float.p.cmx
/usr/lib64/ocaml/stdlib__format.cmx
/usr/lib64/ocaml/stdlib__format.p.cmx
/usr/lib64/ocaml/stdlib__gc.cmx
/usr/lib64/ocaml/stdlib__gc.p.cmx
/usr/lib64/ocaml/stdlib__genlex.cmx
/usr/lib64/ocaml/stdlib__genlex.p.cmx
/usr/lib64/ocaml/stdlib__hashtbl.cmx
/usr/lib64/ocaml/stdlib__hashtbl.p.cmx
/usr/lib64/ocaml/stdlib__int32.cmx
/usr/lib64/ocaml/stdlib__int32.p.cmx
/usr/lib64/ocaml/stdlib__int64.cmx
/usr/lib64/ocaml/stdlib__int64.p.cmx
/usr/lib64/ocaml/stdlib__lazy.cmx
/usr/lib64/ocaml/stdlib__lazy.p.cmx
/usr/lib64/ocaml/stdlib__lexing.cmx
/usr/lib64/ocaml/stdlib__lexing.p.cmx
/usr/lib64/ocaml/stdlib__list.cmx
/usr/lib64/ocaml/stdlib__list.p.cmx
/usr/lib64/ocaml/stdlib__listLabels.cmx
/usr/lib64/ocaml/stdlib__listLabels.p.cmx
/usr/lib64/ocaml/stdlib__map.cmx
/usr/lib64/ocaml/stdlib__map.p.cmx
/usr/lib64/ocaml/stdlib__marshal.cmx
/usr/lib64/ocaml/stdlib__marshal.p.cmx
/usr/lib64/ocaml/stdlib__moreLabels.cmx
/usr/lib64/ocaml/stdlib__moreLabels.p.cmx
/usr/lib64/ocaml/stdlib__nativeint.cmx
/usr/lib64/ocaml/stdlib__nativeint.p.cmx
/usr/lib64/ocaml/stdlib__obj.cmx
/usr/lib64/ocaml/stdlib__obj.p.cmx
/usr/lib64/ocaml/stdlib__oo.cmx
/usr/lib64/ocaml/stdlib__oo.p.cmx
/usr/lib64/ocaml/stdlib__parsing.cmx
/usr/lib64/ocaml/stdlib__parsing.p.cmx
/usr/lib64/ocaml/stdlib__printexc.cmx
/usr/lib64/ocaml/stdlib__printexc.p.cmx
/usr/lib64/ocaml/stdlib__printf.cmx
/usr/lib64/ocaml/stdlib__printf.p.cmx
/usr/lib64/ocaml/stdlib__queue.cmx
/usr/lib64/ocaml/stdlib__queue.p.cmx
/usr/lib64/ocaml/stdlib__random.cmx
/usr/lib64/ocaml/stdlib__random.p.cmx
/usr/lib64/ocaml/stdlib__scanf.cmx
/usr/lib64/ocaml/stdlib__scanf.p.cmx
/usr/lib64/ocaml/stdlib__seq.cmx
/usr/lib64/ocaml/stdlib__seq.p.cmx
/usr/lib64/ocaml/stdlib__set.cmx
/usr/lib64/ocaml/stdlib__set.p.cmx
/usr/lib64/ocaml/stdlib__sort.cmx
/usr/lib64/ocaml/stdlib__sort.p.cmx
/usr/lib64/ocaml/stdlib__spacetime.cmx
/usr/lib64/ocaml/stdlib__spacetime.p.cmx
/usr/lib64/ocaml/stdlib__stack.cmx
/usr/lib64/ocaml/stdlib__stack.p.cmx
/usr/lib64/ocaml/stdlib__stdLabels.cmx
/usr/lib64/ocaml/stdlib__stdLabels.p.cmx
/usr/lib64/ocaml/stdlib__stream.cmx
/usr/lib64/ocaml/stdlib__stream.p.cmx
/usr/lib64/ocaml/stdlib__string.cmx
/usr/lib64/ocaml/stdlib__string.p.cmx
/usr/lib64/ocaml/stdlib__stringLabels.cmx
/usr/lib64/ocaml/stdlib__stringLabels.p.cmx
/usr/lib64/ocaml/stdlib__sys.cmx
/usr/lib64/ocaml/stdlib__sys.p.cmx
/usr/lib64/ocaml/stdlib__uchar.cmx
/usr/lib64/ocaml/stdlib__uchar.p.cmx
/usr/lib64/ocaml/stdlib__weak.cmx
/usr/lib64/ocaml/stdlib__weak.p.cmx
/usr/lib64/ocaml/str.a
/usr/lib64/ocaml/str.cmx
/usr/lib64/ocaml/str.cmxa
/usr/lib64/ocaml/str.cmxs
/usr/lib64/ocaml/str.mli
/usr/lib64/ocaml/stream.mli
/usr/lib64/ocaml/string.mli
/usr/lib64/ocaml/stringLabels.mli
/usr/lib64/ocaml/sys.mli
/usr/lib64/ocaml/thread.mli
/usr/lib64/ocaml/threadUnix.mli
/usr/lib64/ocaml/threads/condition.cmx
/usr/lib64/ocaml/threads/event.cmx
/usr/lib64/ocaml/threads/mutex.cmx
/usr/lib64/ocaml/threads/thread.cmx
/usr/lib64/ocaml/threads/threadUnix.cmx
/usr/lib64/ocaml/threads/threads.a
/usr/lib64/ocaml/threads/threads.cmxa
/usr/lib64/ocaml/topdirs.mli
/usr/lib64/ocaml/uchar.mli
/usr/lib64/ocaml/unix.a
/usr/lib64/ocaml/unix.cmx
/usr/lib64/ocaml/unix.cmxa
/usr/lib64/ocaml/unix.cmxs
/usr/lib64/ocaml/unix.mli
/usr/lib64/ocaml/unixLabels.cmx
/usr/lib64/ocaml/unixLabels.mli
/usr/lib64/ocaml/vmthreads/condition.mli
/usr/lib64/ocaml/vmthreads/event.mli
/usr/lib64/ocaml/vmthreads/libvmthreads.a
/usr/lib64/ocaml/vmthreads/mutex.mli
/usr/lib64/ocaml/vmthreads/thread.mli
/usr/lib64/ocaml/vmthreads/threadUnix.mli
/usr/lib64/ocaml/weak.mli
/usr/share/doc/ocaml
/usr/share/doc/ocaml/LICENSE
References
Summary
In this tutorial we learn how to install ocaml
on CentOS 8 using yum and dnf.