freebayes command not found

In this troubleshooting guide we learn how to fix freebayes command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

freebayes: command not found

or when using sudo you get the following error message

sudo: freebayes: command not found

Solutions to freebayes: command not found

How To Fix freebayes: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu freebayes is provided by freebayes package.

freebayes is:

FreeBayes is a Bayesian genetic variant detector designed to find small polymorphisms, specifically SNPs (single-nucleotide polymorphisms), indels (insertions and deletions), MNPs (multi-nucleotide polymorphisms), and complex events (composite insertion and substitution events) smaller than the length of a short-read sequencing alignment.

To fix this problem, we can install more using the command below.

sudo apt-get -y install freebayes

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install freebayes.

sudo apt -y install freebayes

Or if you have aptitude installed you can use the following command.

sudo aptitude install freebayes

Summary

In this tutorial we learn how to fix freebayes command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.