How To Install ocaml-srpm-macros.noarch on Amazon Linux 2

In this tutorial we learn how to install ocaml-srpm-macros.noarch in Amazon Linux 2. ocaml-srpm-macros.noarch is OCaml architecture macros

Introduction

In this tutorial we learn how to install ocaml-srpm-macros.noarch on Amazon Linux 2.

What is ocaml-srpm-macros.noarch

This package contains macros needed by RPM in order to build SRPMS. It does not pull in any other OCaml dependencies.

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

Install ocaml-srpm-macros.noarch 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-srpm-macros.noarch using yum by running the following command:

sudo yum -y install ocaml-srpm-macros.noarch

How To Uninstall ocaml-srpm-macros.noarch on Amazon Linux 2

To uninstall only the ocaml-srpm-macros.noarch package we can use the following command:

sudo yum remove ocaml-srpm-macros.noarch

ocaml-srpm-macros.noarch Package Contents on Amazon Linux 2

/usr/lib/rpm/macros.d/macros.ocaml-srpm

References

Summary

In this tutorial we learn how to install ocaml-srpm-macros.noarch on Amazon Linux 2 using yum.