How To Install r-cran-maldiquant on Ubuntu 18.04

In this tutorial we learn how to install r-cran-maldiquant on Ubuntu 18.04. r-cran-maldiquant is GNU R package for quantitative analysis of mass spectrometry data

Introduction

In this tutorial we learn how to install r-cran-maldiquant on Ubuntu 18.04.

What is r-cran-maldiquant

r-cran-maldiquant is:

MALDIquant provides a complete analysis pipeline for MALDI-TOF and other mass spectrometry data. Distinctive features include baseline subtraction using the SNIP algorithm, peak alignment using warping functions, handling of replicated measurements as well as allowing spectra with different resolutions.

There are three methods to install r-cran-maldiquant 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-cran-maldiquant 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-cran-maldiquant using apt-get by running the following command:

sudo apt-get -y install r-cran-maldiquant

Install r-cran-maldiquant Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install r-cran-maldiquant

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

sudo aptitude -y install r-cran-maldiquant

How To Uninstall r-cran-maldiquant on Ubuntu 18.04

To uninstall only the r-cran-maldiquant package we can use the following command:

sudo apt-get remove r-cran-maldiquant

Uninstall r-cran-maldiquant And Its Dependencies

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

sudo apt-get -y autoremove r-cran-maldiquant

Remove r-cran-maldiquant Configurations and Data

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

sudo apt-get -y purge r-cran-maldiquant

Remove r-cran-maldiquant configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge r-cran-maldiquant

References

Summary

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