How To Install glpk on CentOS 7
Introduction
In this tutorial we learn how to install glpk
on CentOS 7.
What is glpk
The GLPK (GNU Linear Programming Kit) package is intended for solving large-scale linear programming (LP), mixed integer programming (MIP), and other related problems. It is a set of routines written in ANSI C and organized in the form of a callable library. GLPK supports the GNU MathProg language, which is a subset of the AMPL language. The GLPK package includes the following main components * Revised simplex method. * Primal-dual interior point method. * Branch-and-bound method. * Translator for GNU MathProg. * Application program interface (API). * Stand-alone LP/MIP solver.
We can use yum
or dnf
to install glpk
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install glpk.
Install glpk on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install glpk
using yum
by running the following command:
Install glpk on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install glpk
using dnf
by running the following command:
How To Uninstall glpk on CentOS 7
To uninstall only the glpk
package we can use the following command:
References
Summary
In this tutorial we learn how to install glpk
on CentOS 7 using yum
and dnf
.