How To Install libmopac7-1gf on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libmopac7-1gf on Ubuntu 18.04.
What is libmopac7-1gf
libmopac7-1gf is:
MOPAC provides routines to solve the electronic structure of molecules on a semi-empirical level. Available methods include MNDO, MINDO/3, AM1 and PM3.
This package contains the MOPAC7 code folded into a dynamic library.
There are three methods to install libmopac7-1gf 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 libmopac7-1gf Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install libmopac7-1gf using apt-get by running the following command:
sudo apt-get -y install libmopac7-1gf
Install libmopac7-1gf Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libmopac7-1gf using apt by running the following command:
sudo apt -y install libmopac7-1gf
Install libmopac7-1gf 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 libmopac7-1gf using aptitude by running the following command:
sudo aptitude -y install libmopac7-1gf
How To Uninstall libmopac7-1gf on Ubuntu 18.04
To uninstall only the libmopac7-1gf package we can use the following command:
sudo apt-get remove libmopac7-1gf
Uninstall libmopac7-1gf And Its Dependencies
To uninstall libmopac7-1gf and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove libmopac7-1gf
Remove libmopac7-1gf Configurations and Data
To remove libmopac7-1gf configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libmopac7-1gf
Remove libmopac7-1gf configuration, data, and all of its dependencies
We can use the following command to remove libmopac7-1gf configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libmopac7-1gf
References
Summary
In this tutorial we learn how to install libmopac7-1gf package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.