How To Install glpk on Fedora 34
Introduction
In this tutorial we learn how to install glpk
on Fedora 34.
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. glpk 5.0 2.fc34 x86_64 385 k glpk-5.0-2.fc34.src.rpm fedora GNU Linear Programming Kit https GPLv3+ 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install glpk.
Install glpk on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install glpk
using dnf
by running the following command:
sudo dnf -y install glpk
Install glpk on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install glpk
using yum
by running the following command:
sudo yum -y install glpk
How To Uninstall glpk on Fedora 34
To uninstall only the glpk
package we can use the following command:
sudo dnf remove glpk
glpk Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/fa5059d8f1b22b8c9920385bd3b7224c413e95
/usr/lib64/libglpk.so.40
/usr/lib64/libglpk.so.40.3.1
/usr/share/doc/glpk
/usr/share/doc/glpk/README
/usr/share/licenses/glpk
/usr/share/licenses/glpk/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/f5b83dd9b8bf8a6407b504d5ab42f1903df755
/usr/lib/libglpk.so.40
/usr/lib/libglpk.so.40.3.1
/usr/share/doc/glpk
/usr/share/doc/glpk/README
/usr/share/licenses/glpk
/usr/share/licenses/glpk/COPYING
References
- [glpk website](https://www.gnu.org/software/glpk/glpk.html https://www.gnu.org/software/glpk/glpk.html)
Summary
In this tutorial we learn how to install glpk
on Fedora 34 using yum and dnf.