How To Install ocaml-sha on Rocky Linux 8
Introduction
In this tutorial we learn how to install ocaml-sha
on Rocky Linux 8.
What is ocaml-sha
A binding for SHA interface code in OCaml. Offering the same interface than the MD5 digest included in the OCaml standard library. It’s currently providing SHA1, SHA256 and SHA512 hash functions.
We can use yum
or dnf
to install ocaml-sha
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install ocaml-sha.
Install ocaml-sha on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install ocaml-sha
using dnf
by running the following command:
sudo dnf -y install ocaml-sha
Install ocaml-sha on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install ocaml-sha
using yum
by running the following command:
sudo yum -y install ocaml-sha
How To Uninstall ocaml-sha on Rocky Linux 8
To uninstall only the ocaml-sha
package we can use the following command:
sudo dnf remove ocaml-sha
ocaml-sha Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/0848f99c15766bcb5d1f35822e494a2c89c36b
/usr/lib/.build-id/30
/usr/lib/.build-id/30/c3274c52e48fc8c430ce5b6062188d704fbd85
/usr/lib64/ocaml/sha
/usr/lib64/ocaml/sha/META
/usr/lib64/ocaml/sha/dune-package
/usr/lib64/ocaml/sha/opam
/usr/lib64/ocaml/sha/sha.cma
/usr/lib64/ocaml/sha/sha.cmxs
/usr/lib64/ocaml/sha/sha1.cmi
/usr/lib64/ocaml/sha/sha1.cmt
/usr/lib64/ocaml/sha/sha1.cmti
/usr/lib64/ocaml/sha/sha1.ml
/usr/lib64/ocaml/sha/sha256.cmi
/usr/lib64/ocaml/sha/sha256.cmt
/usr/lib64/ocaml/sha/sha256.cmti
/usr/lib64/ocaml/sha/sha256.ml
/usr/lib64/ocaml/sha/sha512.cmi
/usr/lib64/ocaml/sha/sha512.cmt
/usr/lib64/ocaml/sha/sha512.cmti
/usr/lib64/ocaml/sha/sha512.ml
/usr/lib64/ocaml/stublibs
/usr/lib64/ocaml/stublibs/dllsha_stubs.so
/usr/share/doc/ocaml-sha
/usr/share/doc/ocaml-sha/CHANGES.md
/usr/share/doc/ocaml-sha/README
/usr/share/licenses/ocaml-sha
/usr/share/licenses/ocaml-sha/LICENSE.md
References
Summary
In this tutorial we learn how to install ocaml-sha
on Rocky Linux 8 using yum and dnf.