How To Install libstar-parser-perl on Ubuntu 18.04

In this tutorial we learn how to install libstar-parser-perl on Ubuntu 18.04. libstar-parser-perl is STAR compliant data file parser for Perl

Introduction

In this tutorial we learn how to install libstar-parser-perl on Ubuntu 18.04.

What is libstar-parser-perl

libstar-parser-perl is:

This distribution contains a set of Perl modules for parsing STAR compliant data files and dictionaries, for example CIF or mmCIF data files and dictionaries. While these tools are not limited to CIF or mmCIF files, they do not allow the presence of nested loops.

The following modules are included in this distribution:

STAR::Parser
STAR::DataBlock
STAR::Dictionary
STAR::Writer
STAR::Checker
STAR::Filter

There are three methods to install libstar-parser-perl 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 libstar-parser-perl Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libstar-parser-perl

Install libstar-parser-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libstar-parser-perl using apt by running the following command:

sudo apt -y install libstar-parser-perl

Install libstar-parser-perl 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 libstar-parser-perl using aptitude by running the following command:

sudo aptitude -y install libstar-parser-perl

How To Uninstall libstar-parser-perl on Ubuntu 18.04

To uninstall only the libstar-parser-perl package we can use the following command:

sudo apt-get remove libstar-parser-perl

Uninstall libstar-parser-perl And Its Dependencies

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

sudo apt-get -y autoremove libstar-parser-perl

Remove libstar-parser-perl Configurations and Data

To remove libstar-parser-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libstar-parser-perl

Remove libstar-parser-perl configuration, data, and all of its dependencies

We can use the following command to remove libstar-parser-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libstar-parser-perl

References

Summary

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