How To Install bwa on Kali Linux

In this tutorial we learn how to install bwa on Kali Linux. bwa is Burrows-Wheeler Aligner

Introduction

In this tutorial we learn how to install bwa on Kali Linux.

What is bwa

bwa is:

BWA is a software package for mapping low-divergent sequences against a large reference genome, such as the human genome. It consists of three algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is designed for Illumina sequence reads up to 100bp, while the rest two for longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar features such as long-read support and split alignment, but BWA-MEM, which is the latest, is generally recommended for high-quality queries as it is faster and more accurate. BWA-MEM also has better performance than BWA-backtrack for 70-100bp Illumina reads.

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

Install bwa Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install bwa

Install bwa Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install bwa

Install bwa Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install bwa

How To Uninstall bwa on Kali Linux

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

sudo apt-get remove bwa

Uninstall bwa And Its Dependencies

To uninstall bwa and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove bwa

Remove bwa Configurations and Data

To remove bwa configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge bwa

Remove bwa configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge bwa

Dependencies

bwa have the following dependencies:

References

Summary

In this tutorial we learn how to install bwa package on Kali Linux using different package management tools: apt, apt-get and aptitude.