How To Install ocaml-num on Fedora 36

In this tutorial we learn how to install ocaml-num in Fedora 36. ocaml-num is Legacy Num library for arbitrary-precision integer and rational arithmetic

Introduction

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

What is ocaml-num

This library implements arbitrary-precision arithmetic on big integers and on rationals. This is a legacy library. It used to be part of the core OCaml distribution (in otherlibs/num) but is now distributed separately. New applications that need arbitrary-precision arithmetic should use the Zarith library (https library, and older applications that already use Num are encouraged to switch to Zarith. Zarith delivers much better performance than Num and has a nicer API.

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

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

sudo dnf -y install ocaml-num

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

sudo yum -y install ocaml-num

How To Uninstall ocaml-num on Fedora 36

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

sudo dnf remove ocaml-num

ocaml-num Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/be
/usr/lib/.build-id/be/bc54ff0ee480182e1b6258bdfb0283aea3168f
/usr/lib/ocaml/arith_status.cmi
/usr/lib/ocaml/big_int.cmi
/usr/lib/ocaml/nat.cmi
/usr/lib/ocaml/num
/usr/lib/ocaml/num-top
/usr/lib/ocaml/num-top/META
/usr/lib/ocaml/num-top/num_top.cma
/usr/lib/ocaml/num-top/num_top.cmi
/usr/lib/ocaml/num-top/num_top_printers.cmi
/usr/lib/ocaml/num.cmi
/usr/lib/ocaml/num/META
/usr/lib/ocaml/nums.cma
/usr/lib/ocaml/nums.cmxs
/usr/lib/ocaml/ratio.cmi
/usr/lib/ocaml/stublibs/dllnums.so
/usr/share/doc/ocaml-num
/usr/share/doc/ocaml-num/Changelog
/usr/share/doc/ocaml-num/README.md
/usr/share/licenses/ocaml-num
/usr/share/licenses/ocaml-num/LICENSE

References

Summary

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


title: “How To Install ocaml-num on Fedora 36” linkTitle: “ocaml-num” type: “docs” description: “In this tutorial we learn how to install ocaml-num in Fedora 36. ocaml-num is Legacy Num library for arbitrary-precision integer and rational arithmetic” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/ocaml-num-featured.png

Introduction

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

What is ocaml-num

This library implements arbitrary-precision arithmetic on big integers and on rationals. This is a legacy library. It used to be part of the core OCaml distribution (in otherlibs/num) but is now distributed separately. New applications that need arbitrary-precision arithmetic should use the Zarith library (https library, and older applications that already use Num are encouraged to switch to Zarith. Zarith delivers much better performance than Num and has a nicer API.

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

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

sudo dnf -y install ocaml-num

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

sudo yum -y install ocaml-num

How To Uninstall ocaml-num on Fedora 36

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

sudo dnf remove ocaml-num

ocaml-num Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/56
/usr/lib/.build-id/56/b9e71c865a01ee0e090b727893a8e052eb75a2
/usr/lib64/ocaml/arith_status.cmi
/usr/lib64/ocaml/big_int.cmi
/usr/lib64/ocaml/nat.cmi
/usr/lib64/ocaml/num
/usr/lib64/ocaml/num-top
/usr/lib64/ocaml/num-top/META
/usr/lib64/ocaml/num-top/num_top.cma
/usr/lib64/ocaml/num-top/num_top.cmi
/usr/lib64/ocaml/num-top/num_top_printers.cmi
/usr/lib64/ocaml/num.cmi
/usr/lib64/ocaml/num/META
/usr/lib64/ocaml/nums.cma
/usr/lib64/ocaml/nums.cmxs
/usr/lib64/ocaml/ratio.cmi
/usr/lib64/ocaml/stublibs/dllnums.so
/usr/share/doc/ocaml-num
/usr/share/doc/ocaml-num/Changelog
/usr/share/doc/ocaml-num/README.md
/usr/share/licenses/ocaml-num
/usr/share/licenses/ocaml-num/LICENSE

References

Summary

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