How To Install gdl-mpfit on Ubuntu 20.04
Introduction
In this tutorial we learn how to install gdl-mpfit
on Ubuntu 20.04.
What is gdl-mpfit
gdl-mpfit is:
These GDL routines provide a robust and relatively fast way to perform least-squares curve and surface fitting. The algorithms are translated from MINPACK-1, which is a rugged minimization routine found on Netlib, and distributed with permission. This algorithm is more desirable than CURVEFIT because it is generally more stable and less likely to crash than the brute-force approach taken by CURVEFIT, which is based upon Numerical Recipes.
MPFIT has additional capabilities not found in CURVEFIT. Model parameters can be “frozen” (that is, held constant during the fitting process). Simple boundary constraints can be imposed on parameter values, which can be helpful to keep parameters from becoming negative, for example. Please see the documentation for the PARINFO keyword if you wish to use this facility.
There are three methods to install gdl-mpfit
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 gdl-mpfit Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install gdl-mpfit
using apt-get
by running the following command:
sudo apt-get -y install gdl-mpfit
Install gdl-mpfit Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install gdl-mpfit
using apt
by running the following command:
sudo apt -y install gdl-mpfit
Install gdl-mpfit 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 gdl-mpfit
using aptitude
by running the following command:
sudo aptitude -y install gdl-mpfit
How To Uninstall gdl-mpfit on Ubuntu 20.04
To uninstall only the gdl-mpfit
package we can use the following command:
sudo apt-get remove gdl-mpfit
Uninstall gdl-mpfit And Its Dependencies
To uninstall gdl-mpfit
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove gdl-mpfit
Remove gdl-mpfit Configurations and Data
To remove gdl-mpfit
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge gdl-mpfit
Remove gdl-mpfit configuration, data, and all of its dependencies
We can use the following command to remove gdl-mpfit
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge gdl-mpfit
References
Summary
In this tutorial we learn how to install gdl-mpfit
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.