sudo apt full-upgrade
sudo apt install cmake
sudo apt install gcc&g++
sudo wget ftp://ftp.gromacs.org/gromacs/gromacs-2022.3.tar.gz
sudo tar xfz gromacs-2022.3.tar.gz
cd gromacs-2022.3
mkdir build
cd build
sudo cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON
sudo make
sudo make check
sudo make install
sudo source /usr/local/gromacs/bin/GMXRC