How To Install p4vasp on Ubuntu 18.04
Introduction
In this tutorial we learn how to install p4vasp
on Ubuntu 18.04.
What is p4vasp
p4vasp is:
p4VASP is a visualization suite for the Vienna Ab-initio Simulation Package (VASP). It contains an extensible GUI framework, that can be used to view material structure, density of states, band-structure and more.
It provides a Python library, that greatly simplifies the process of manipulation of the VASP input and output data in Python scripts. P4vasp utilizes also many handy routines and objects e.g. for creating 2D graphs, data storage (xml,DOM) or simple matrix library.
There are three methods to install p4vasp
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 p4vasp Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install p4vasp
using apt-get
by running the following command:
sudo apt-get -y install p4vasp
Install p4vasp Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install p4vasp
using apt
by running the following command:
sudo apt -y install p4vasp
Install p4vasp 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 p4vasp
using aptitude
by running the following command:
sudo aptitude -y install p4vasp
How To Uninstall p4vasp on Ubuntu 18.04
To uninstall only the p4vasp
package we can use the following command:
sudo apt-get remove p4vasp
Uninstall p4vasp And Its Dependencies
To uninstall p4vasp
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove p4vasp
Remove p4vasp Configurations and Data
To remove p4vasp
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge p4vasp
Remove p4vasp configuration, data, and all of its dependencies
We can use the following command to remove p4vasp
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge p4vasp
References
Summary
In this tutorial we learn how to install p4vasp
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.