How To Install r-bioc-snpstats on Ubuntu 18.04

In this tutorial we learn how to install r-bioc-snpstats on Ubuntu 18.04. r-bioc-snpstats is BioConductor SnpMatrix and XSnpMatrix classes and methods

Introduction

In this tutorial we learn how to install r-bioc-snpstats on Ubuntu 18.04.

What is r-bioc-snpstats

r-bioc-snpstats is:

This BioConductor package provides R functions to work with SnpMatrix and XSnpMatrix classes and methods.

There are three methods to install r-bioc-snpstats 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 r-bioc-snpstats Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install r-bioc-snpstats

Install r-bioc-snpstats Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install r-bioc-snpstats using apt by running the following command:

sudo apt -y install r-bioc-snpstats

Install r-bioc-snpstats 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 r-bioc-snpstats using aptitude by running the following command:

sudo aptitude -y install r-bioc-snpstats

How To Uninstall r-bioc-snpstats on Ubuntu 18.04

To uninstall only the r-bioc-snpstats package we can use the following command:

sudo apt-get remove r-bioc-snpstats

Uninstall r-bioc-snpstats And Its Dependencies

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

sudo apt-get -y autoremove r-bioc-snpstats

Remove r-bioc-snpstats Configurations and Data

To remove r-bioc-snpstats configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge r-bioc-snpstats

Remove r-bioc-snpstats configuration, data, and all of its dependencies

We can use the following command to remove r-bioc-snpstats configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge r-bioc-snpstats

References

Summary

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