How To Install xmakemol-gl on Ubuntu 18.04

In this tutorial we learn how to install xmakemol-gl on Ubuntu 18.04. xmakemol-gl is program for visualizing atomic and molecular systems (OpenGL)

Introduction

In this tutorial we learn how to install xmakemol-gl on Ubuntu 18.04.

What is xmakemol-gl

xmakemol-gl is:

XMakemol is a mouse-based program, written using the LessTif widget set, for viewing and manipulating atomic and other chemical systems. It reads XYZ input and renders atoms, bonds and hydrogen bonds.

Features include:

  • Animating multiple frame files
  • Interactive measurement of bond lengths, bond angles and torsion angles
  • Control over atom/bond sizes
  • Exporting to Xpm, Encapsulated PostScript and XYZ formats
  • Toggling the visibility of groups of atoms
  • Editing the positions of subsets of atoms

This is the OpenGL-enabled XMakemol package. The images are rendered using true 3D graphics primitives, and can be exported using the Xpm format; red/blue stereo images can also be produced. The OpenGL package provides more display options, along with better support for displaying vectors. Ellipses can also be rendered.

There are three methods to install xmakemol-gl 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 xmakemol-gl Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install xmakemol-gl

Install xmakemol-gl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install xmakemol-gl

Install xmakemol-gl 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 xmakemol-gl using aptitude by running the following command:

sudo aptitude -y install xmakemol-gl

How To Uninstall xmakemol-gl on Ubuntu 18.04

To uninstall only the xmakemol-gl package we can use the following command:

sudo apt-get remove xmakemol-gl

Uninstall xmakemol-gl And Its Dependencies

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

sudo apt-get -y autoremove xmakemol-gl

Remove xmakemol-gl Configurations and Data

To remove xmakemol-gl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge xmakemol-gl

Remove xmakemol-gl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge xmakemol-gl

References

Summary

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