MD Simulation
Easy installation of GROMACS on Ubuntu 18.04 & 20.04

We have provided several articles on GROMACS [1] installation on Ubuntu including the easy installation method for GROMACS version 5.x.x. In this article, we will provide shell scripts to install the latest (2021 series) of GROMACS on Ubuntu 18.04 and 20.04.
If you are still looking to install an old version of GROMACS (5.x.x), please read this article. There you will find both elaborative as well as easy installation methods.
Preparing system
Press Ctrl+Alt+T and a terminal will open up. In the terminal, type:
$ sudo apt-get update
$ sudo apt-get upgrade
Downloading the script
We have created a new installer for you that will easily install the latest version of GROMACS (2021) on your system.
For Ubuntu 18.04
Download the script using the following command.
$ wget https://bioinformaticsreview.com/repository/gromacs-installer-2021-ubuntu18.04.sh
For Ubuntu 20.04
Download the script using the following command.
$ wget https://bioinformaticsreview.com/repository/gromacs-installer-2021-ubuntu20.04.sh
Installing GROMACS
If the installer doesn’t work for you, then proceed with the normal installation method mentioned in this article. You have to replace the old version with the new one. After downloading the appropriate script, proceed with the following steps.
- Make the script executable
$ chmod +x gromacs-installer-2021-ubuntu18.04.sh
or
$ chmod +x gromacs-installer-2021-ubuntu20.04.sh
- start the installer
$ ./gromacs-installer-2021-ubuntu18.04.sh
or
$ ./gromacs-installer-2021-ubuntu20.04.sh
- If it shows an error stating “Permission denied“, then run the above commands with sudo as shown below:
$ sudo ./gromacs-installer-2021-ubuntu18.04.sh
or
$ sudo ./gromacs-installer-2021-ubuntu20.04.sh
It will take a few minutes to finish the installation. After that, you can check for successful installation using the following command:
$ gmx pdb2gmx --version
References
- Abraham, M. J., Murtola, T., Schulz, R., Páll, S., Smith, J. C., Hess, B., & Lindahl, E. (2015). GROMACS: High performance molecular simulations through multi-level parallelism from laptops to supercomputers. SoftwareX, 1, 19-25.
Further Reading
Tutorial: MD simulation output analysis of protein using GROMACS
Tutorial: MD Simulation of a Protein-Ligand Complex using GROMACS
MD Simulation
How to install GROMACS on Apple M1 (MacOS)?

We have provided a few articles on GROMACS installation on Ubuntu. In this article, we are going to install GROMACS [1] on Mac OS. (more…)
MD Simulation
How to take snapshots of structure at specific times in GROMACS?

It is important to see the behavior of protein during an MD simulation. This can be achieved by taking snapshots in the form of PDB format. In this article, we have provided a few commands that you can use to take snapshots of a complete system or protein during MD simulation. (more…)
MD Simulation
GROMACS: Uses & Applications

GROMACS stands for GROningen MAchine for Chemical Simulations [1]. It is a very popular and one of the most widely used open-source bioinformatics software. It is generally used for molecular dynamics simulation of macromolecules. In this article, we will explain its uses and applications in bioinformatics studies. (more…)
You must be logged in to post a comment Login