How To Install xcrysden on Ubuntu 18.04

In this tutorial we learn how to install xcrysden on Ubuntu 18.04. xcrysden is Crystalline and Molecular Structure Visualizer

Introduction

In this tutorial we learn how to install xcrysden on Ubuntu 18.04.

What is xcrysden

xcrysden is:

XCrySDen is a crystalline and molecular structure visualisation program, which aims at display of isosurfaces and contours, which can be superimposed on crystalline structures and interactively rotated and manipulated. It can run on most UNIX platforms, without any special hardware requirements.

XCrySDen allows for real-time capture of display. Several movie encoders are supported, in particular for Animated-GIF convert (imagemagick), gifsicle, or whirlgif are necessary. For AVI/MPEG mencoder or ppmtompeg (netpbm) is required. For window dumps either imagemagick or xwd (x11-apps) needs to be present.

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

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

sudo apt-get update

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

sudo apt-get -y install xcrysden

Install xcrysden Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install xcrysden

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

sudo aptitude -y install xcrysden

How To Uninstall xcrysden on Ubuntu 18.04

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

sudo apt-get remove xcrysden

Uninstall xcrysden And Its Dependencies

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

sudo apt-get -y autoremove xcrysden

Remove xcrysden Configurations and Data

To remove xcrysden configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge xcrysden

Remove xcrysden configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge xcrysden

References

Summary

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