How To Install libgridtools-dev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libgridtools-dev
on Ubuntu 20.04.
What is libgridtools-dev
libgridtools-dev is:
The GridTools (GT) framework is a set of libraries and utilities to develop performance portable applications in which stencil operations on grids are central. It provides regular and block-structured grids commonly found in the weather and climate application field, addresses the challenges that arise from integration into production code, such as the expression of boundaryi conditions, or conditional execution. The framework is structured such that it can be called from different weather models or programming interfaces, and can target various computer architectures. This is achieved by separating the GT core library in a user facing part (frontend) and architecture specific (backend) parts. The core library also abstracts various possible data layouts and applies optimizations on stages with multiple stencils. The core library is complemented by facilities to interoperate with other languages (such as C and Fortran), to aid code development and a communication layer.
There are three methods to install libgridtools-dev
on Ubuntu 20.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 libgridtools-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libgridtools-dev
using apt-get
by running the following command:
sudo apt-get -y install libgridtools-dev
Install libgridtools-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libgridtools-dev
using apt
by running the following command:
sudo apt -y install libgridtools-dev
Install libgridtools-dev 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 libgridtools-dev
using aptitude
by running the following command:
sudo aptitude -y install libgridtools-dev
How To Uninstall libgridtools-dev on Ubuntu 20.04
To uninstall only the libgridtools-dev
package we can use the following command:
sudo apt-get remove libgridtools-dev
Uninstall libgridtools-dev And Its Dependencies
To uninstall libgridtools-dev
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libgridtools-dev
Remove libgridtools-dev Configurations and Data
To remove libgridtools-dev
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libgridtools-dev
Remove libgridtools-dev configuration, data, and all of its dependencies
We can use the following command to remove libgridtools-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libgridtools-dev
References
Summary
In this tutorial we learn how to install libgridtools-dev
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.