How To Install gdis on Ubuntu 22.04

In this tutorial we learn how to install gdis on Ubuntu 22.04. gdis is molecular and crystal model viewer

Introduction

In this tutorial we learn how to install gdis on Ubuntu 22.04.

What is gdis

gdis is:

A GTK+ based program for the display and manipulation of isolated molecules, periodic systems and crystalline habits. It is in development, but is nonetheless fairly functional. It has the following features:

  • Support for several file types (CIF, BIOSYM, XYZ, XTL, MARVIN, and GULP)
  • A simple molecular creation and manipulation tool
  • A dialogue for creating starting configurations for molecular dynamics simulations
  • Assorted tools for visualization (geometry information, region highlighting, etc.)
  • Animation of BIOSYM files (also rendered animations, see below)

GDIS also allows you to perform the following functions through other packages:

  • Model rendering (courtesy of POVRay)
  • Energy minimization (courtesy of GULP)
  • Morphology calculation (courtesy of cdd)
  • Space group processing (courtesy of SgInfo)
  • View the Periodic Table (courtesy of GPeriodic)
  • Load additional filetypes, such as PDB (courtesy of Babel)

There are three methods to install gdis on Ubuntu 22.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 gdis Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install gdis

Install gdis Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install gdis

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

sudo aptitude -y install gdis

How To Uninstall gdis on Ubuntu 22.04

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

sudo apt-get remove gdis

Uninstall gdis And Its Dependencies

To uninstall gdis and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove gdis

Remove gdis Configurations and Data

To remove gdis configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge gdis

Remove gdis configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge gdis

References

Summary

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