How To Install cdi-api.noarch on Amazon Linux 2

In this tutorial we learn how to install cdi-api.noarch in Amazon Linux 2. cdi-api.noarch is CDI API

Introduction

In this tutorial we learn how to install cdi-api.noarch on Amazon Linux 2.

What is cdi-api.noarch

APIs for JSR-299

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

Install cdi-api.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 cdi-api.noarch using yum by running the following command:

sudo yum -y install cdi-api.noarch

How To Uninstall cdi-api.noarch on Amazon Linux 2

To uninstall only the cdi-api.noarch package we can use the following command:

sudo yum remove cdi-api.noarch

cdi-api.noarch Package Contents on Amazon Linux 2

/usr/share/java/cdi-api.jar
/usr/share/maven-fragments/cdi-api
/usr/share/maven-poms/JPP-cdi-api.pom

References

Summary

In this tutorial we learn how to install cdi-api.noarch on Amazon Linux 2 using yum.