How To Install ants on Ubuntu 18.04

In this tutorial we learn how to install ants on Ubuntu 18.04. ants is advanced normalization tools for brain and image analysis

Introduction

In this tutorial we learn how to install ants on Ubuntu 18.04.

What is ants

ants is:

Advanced Normalization Tools (ANTS) is an ITK-based suite of normalization, segmentation and template-building tools for quantitative morphometric analysis. Many of the ANTS registration tools are diffeomorphic, but deformation (elastic and BSpline) transformations are available. Unique components of ANTS include multivariate similarity metrics, landmark guidance, the ability to use label images to guide the mapping and both greedy and space-time optimal implementations of diffeomorphisms. The symmetric normalization (SyN) strategy is a part of the ANTS toolkit as is directly manipulated free form deformation (DMFFD).

This package provides environment-modules configuration. Use ‘module load ants’ to make all cmdline tools available in your shell.

There are three methods to install ants on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ants Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ants using apt-get by running the following command:

sudo apt-get -y install ants

Install ants Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ants using apt by running the following command:

sudo apt -y install ants

Install ants Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ants using aptitude by running the following command:

sudo aptitude -y install ants

How To Uninstall ants on Ubuntu 18.04

To uninstall only the ants package we can use the following command:

sudo apt-get remove ants

Uninstall ants And Its Dependencies

To uninstall ants and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove ants

Remove ants Configurations and Data

To remove ants configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ants

Remove ants configuration, data, and all of its dependencies

We can use the following command to remove ants configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ants

References

Summary

In this tutorial we learn how to install ants package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.