How To Install libchemistry-elements-perl on Ubuntu 18.04

In this tutorial we learn how to install libchemistry-elements-perl on Ubuntu 18.04. libchemistry-elements-perl is Perl extension for working with Chemical Elements

Introduction

In this tutorial we learn how to install libchemistry-elements-perl on Ubuntu 18.04.

What is libchemistry-elements-perl

libchemistry-elements-perl is:

Chemistry::Elements provides an easy, object-oriented way to keep track of your chemical data. Using either the atomic number, chemical symbol, or element name you can construct an Element object. Once you have an element object, you can associate your data with the object by making up your own methods, which the AUTOLOAD function handles. Since each chemist is likely to want to use his or her own data, or data for some unforesee-able property, this module does not try to be a repository for chemical data.

There are three methods to install libchemistry-elements-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 libchemistry-elements-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 libchemistry-elements-perl using apt-get by running the following command:

sudo apt-get -y install libchemistry-elements-perl

Install libchemistry-elements-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libchemistry-elements-perl

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

sudo aptitude -y install libchemistry-elements-perl

How To Uninstall libchemistry-elements-perl on Ubuntu 18.04

To uninstall only the libchemistry-elements-perl package we can use the following command:

sudo apt-get remove libchemistry-elements-perl

Uninstall libchemistry-elements-perl And Its Dependencies

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

sudo apt-get -y autoremove libchemistry-elements-perl

Remove libchemistry-elements-perl Configurations and Data

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

sudo apt-get -y purge libchemistry-elements-perl

Remove libchemistry-elements-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libchemistry-elements-perl

References

Summary

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