How To Install libchemistry-file-mdlmol-perl on Debian 12

Learn how to install libchemistry-file-mdlmol-perl on Debian 12 with this tutorial. libchemistry-file-mdlmol-perl is MDL molfile/SDF (V2000) reader/writer

Introduction

In this tutorial we learn how to install libchemistry-file-mdlmol-perl on Debian 12.

What is libchemistry-file-mdlmol-perl

libchemistry-file-mdlmol-perl is:

Chemistry::File::MDLMol automatically registers the ‘sdf’ format with Chemistry::Mol.

The parser returns a list of Chemistry::Mol objects. SDF data can be accessed by the $mol->attr method. Attribute names are stored as a hash ref at the “sdf/data” attribute, as shown in the synopsis. When a data item has a single line in the SDF file, the attribute is stored as a string; when there’s more than one line, they are stored as an array reference. The rest of the information on the line that holds the field name is ignored.

There are three methods to install libchemistry-file-mdlmol-perl on Debian 12. 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-file-mdlmol-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-file-mdlmol-perl using apt-get by running the following command:

sudo apt-get -y install libchemistry-file-mdlmol-perl

Install libchemistry-file-mdlmol-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libchemistry-file-mdlmol-perl

Install libchemistry-file-mdlmol-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libchemistry-file-mdlmol-perl

How To Uninstall libchemistry-file-mdlmol-perl on Debian 12

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

sudo apt-get remove libchemistry-file-mdlmol-perl

Uninstall libchemistry-file-mdlmol-perl And Its Dependencies

To uninstall libchemistry-file-mdlmol-perl and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libchemistry-file-mdlmol-perl

Remove libchemistry-file-mdlmol-perl Configurations and Data

To remove libchemistry-file-mdlmol-perl configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libchemistry-file-mdlmol-perl

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

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

sudo apt-get -y autoremove --purge libchemistry-file-mdlmol-perl

Dependencies

libchemistry-file-mdlmol-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libchemistry-file-mdlmol-perl package on Debian 12 using different package management tools: apt, apt-get and aptitude.