How To Install apache-ivy on CentOS 7

In this tutorial we learn how to install apache-ivy on CentOS 7. apache-ivy is Java-based dependency manager

Introduction

In this tutorial we learn how to install apache-ivy on CentOS 7.

What is apache-ivy

Apache Ivy is a tool for managing (recording, tracking, resolving and reporting) project dependencies. It is designed as process agnostic and is not tied to any methodology or structure. while available as a standalone tool, Apache Ivy works particularly well with Apache Ant providing a number of powerful Ant tasks ranging from dependency resolution to dependency reporting and publication.

We can use yum or dnf to install apache-ivy on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install apache-ivy.

Install apache-ivy on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install apache-ivy using yum by running the following command:

sudo yum -y install apache-ivy

Install apache-ivy on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install apache-ivy using dnf by running the following command:

sudo dnf -y install apache-ivy

How To Uninstall apache-ivy on CentOS 7

To uninstall only the apache-ivy package we can use the following command:

sudo dnf remove apache-ivy

References

Summary

In this tutorial we learn how to install apache-ivy on CentOS 7 using yum and dnf.