How To Install chemeq on Kali Linux

In this tutorial we learn how to install chemeq on Kali Linux. chemeq is Parser for chemical formula and equilibria

Introduction

In this tutorial we learn how to install chemeq on Kali Linux.

What is chemeq

chemeq is:

chemeq is a basic standalone filter written in C language, flex and bison. It inputs strings like: 2H2 + O2 —> 2 H2O then it outputs LaTeX code and messages about the equilibrium of a chemical reaction.

example:~/src$ echo “2H2 + O2 —> 2 H2O” | chemeq -lc 2,H_{2},+,O_{2},\rightarrow,2,H_{2}O OK

There are three methods to install chemeq on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install chemeq Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install chemeq

Install chemeq Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install chemeq using apt by running the following command:

sudo apt -y install chemeq

Install chemeq Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install chemeq using aptitude by running the following command:

sudo aptitude -y install chemeq

How To Uninstall chemeq on Kali Linux

To uninstall only the chemeq package we can use the following command:

sudo apt-get remove chemeq

Uninstall chemeq And Its Dependencies

To uninstall chemeq and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove chemeq

Remove chemeq Configurations and Data

To remove chemeq configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge chemeq

Remove chemeq configuration, data, and all of its dependencies

We can use the following command to remove chemeq configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge chemeq

Dependencies

chemeq have the following dependencies:

References

Summary

In this tutorial we learn how to install chemeq package on Kali Linux using different package management tools: apt, apt-get and aptitude.