How To Install ocaml-csv.x86_64 on Amazon Linux 2

In this tutorial we learn how to install ocaml-csv.x86_64 in Amazon Linux 2. ocaml-csv.x86_64 is OCaml library for reading and writing CSV files

Introduction

In this tutorial we learn how to install ocaml-csv.x86_64 on Amazon Linux 2.

What is ocaml-csv.x86_64

This OCaml library can read and write CSV files, including all extensions used by Excel - eg. quotes, newlines, 8 bit characters in fields, quote-0 etc. The library comes with a handy command line tool called csvtool for handling CSV files from shell scripts.

We can use yum to install ocaml-csv.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install ocaml-csv.x86_64.

Install ocaml-csv.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ocaml-csv.x86_64 using yum by running the following command:

sudo yum -y install ocaml-csv.x86_64

How To Uninstall ocaml-csv.x86_64 on Amazon Linux 2

To uninstall only the ocaml-csv.x86_64 package we can use the following command:

sudo yum remove ocaml-csv.x86_64

ocaml-csv.x86_64 Package Contents on Amazon Linux 2

/usr/bin/csvtool
/usr/lib64/ocaml/csv
/usr/lib64/ocaml/csv/META
/usr/lib64/ocaml/csv/csv.cma
/usr/lib64/ocaml/csv/csv.cmi
/usr/lib64/ocaml/csv/csv.cmxs
/usr/share/doc/ocaml-csv-1.2.3
/usr/share/doc/ocaml-csv-1.2.3/LICENSE.txt

References

Summary

In this tutorial we learn how to install ocaml-csv.x86_64 on Amazon Linux 2 using yum.