How To Install harvest-tools on Ubuntu 18.04

In this tutorial we learn how to install harvest-tools on Ubuntu 18.04. harvest-tools is archiving and postprocessing for reference-compressed genomic multi-alignments

Introduction

In this tutorial we learn how to install harvest-tools on Ubuntu 18.04.

What is harvest-tools

harvest-tools is:

HarvestTools is a utility for creating and interfacing with Gingr files, which are efficient archives that the Harvest Suite uses to store reference-compressed multi-alignments, phylogenetic trees, filtered variants and annotations. Though designed for use with Parsnp and Gingr, HarvestTools can also be used for generic conversion between standard bioinformatics file formats.

There are three methods to install harvest-tools 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 harvest-tools Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install harvest-tools

Install harvest-tools Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install harvest-tools

Install harvest-tools 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 harvest-tools using aptitude by running the following command:

sudo aptitude -y install harvest-tools

How To Uninstall harvest-tools on Ubuntu 18.04

To uninstall only the harvest-tools package we can use the following command:

sudo apt-get remove harvest-tools

Uninstall harvest-tools And Its Dependencies

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

sudo apt-get -y autoremove harvest-tools

Remove harvest-tools Configurations and Data

To remove harvest-tools configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge harvest-tools

Remove harvest-tools configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge harvest-tools

References

Summary

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