macOS
brew install glpklocal Homebrew formula metadata
sudo port install glpkMacPorts ports tree · math/glpk/Portfile · source: api.github.com
brew
Library for Linear and Mixed-Integer Programming. Version 5.0 via Homebrew; verified 2026-06-19.
install
brew install glpklocal Homebrew formula metadata
sudo port install glpkMacPorts ports tree · math/glpk/Portfile · source: api.github.com
sudo apk add glpkAlpine Linux edge package indexes · glpk · source: dl-cdn.alpinelinux.org
sudo apt install glpk-docDebian stable package indexes · glpk-doc · source: deb.debian.org
sudo dnf install glpkFedora Rawhide package metadata · glpk · source: dl.fedoraproject.org
nix profile install nixpkgs#glpknixpkgs package indexes · pkgs/by-name/gl/glpk/package.nix · source: api.github.com
sudo pacman -S glpkArch Linux sync databases · glpk · source: geo.mirror.pkgbuild.com
sudo zypper install glpkopenSUSE Tumbleweed package metadata · glpk · source: download.opensuse.org
choco install glpkChocolatey community package catalog · glpk · source: community.chocolatey.org
overview
Library for Linear and Mixed-Integer Programming
history
GLPK, the GNU Linear Programming Kit, is a GNU Project library and solver suite for large-scale linear programming, mixed-integer programming, and related optimization problems.
The GNU FTP archive shows GLPK tarballs dating back to the 1.x line in 2000 and rapid 2.x and 3.x releases in 2001 and 2002. The 5.0 source package identifies GLPK as part of the GNU Project and describes it as ANSI C routines organized as a callable library.
GLPK evolved around a small but durable solver toolkit: primal simplex, dual simplex, exact rational simplex, primal-dual interior point, branch-and-cut, an API, the GNU MathProg modeling language, and the glpsol standalone solver. The 5.0 NEWS file records a long release history through the 4.x series before the 5.0 release in 2020.
GLPK's adoption is strongest in academic, operations-research, reproducible-build, and scripting settings where a GPL solver can be installed from ordinary system package managers. Homebrew, Debian and Ubuntu package names, MacPorts, Nix, Pacman, Chocolatey, and other package-manager records show broad distribution.
Practitioners use GLPK as a C library from applications or through glpsol for command-line solving. Typical inputs include MathProg models, LP files, MPS files, and mixed-integer models, with outputs used for teaching, prototyping, batch optimization jobs, and integration tests for modeling layers.
GLPK is important to package maintainers because it gives a complete optimization stack as portable C source plus a CLI solver. It is often the default free solver dependency that higher-level modeling tools can detect before users install commercial or heavier open-source solvers.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
glpsol | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://www.gnu.org/software/glpk/
install metadata
| Package key | brew:glpk |
|---|---|
| Version | 5.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/glpk |
| Homepage | https://www.gnu.org/software/glpk/ |
| Upstream docs | https://www.gnu.org/software/glpk |
| License | GPL-3.0-or-later |
| Source archive | https://ftpmirror.gnu.org/gnu/glpk/glpk-5.0.tar.gz |
| Last updated | 2026-06-19T12:31:20-07:00 |
| Pulse | updated |
| Dependencies | gmp |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | glpk |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
glpk-doc 5.0-1
linear programming kit - documentation files
https://www.gnu.org/software/glpk/glpk.html
sudo apt install glpk-docglpk-utils 5.0-1+b2
linear programming kit - utility files
https://www.gnu.org/software/glpk/glpk.html
sudo apt install glpk-utilslibglpk-dev 5.0-1+b2
linear programming kit - development files
https://www.gnu.org/software/glpk/glpk.html
sudo apt install libglpk-devlibglpk40 5.0-1+b2
linear programming kit with integer (MIP) support
https://www.gnu.org/software/glpk/glpk.html
sudo apt install libglpk40glpk
nix profile install nixpkgs#glpkglpk-doc 5.0-1build2
linear programming kit - documentation files
https://www.gnu.org/software/glpk/glpk.html
sudo apt install glpk-docglpk-utils 5.0-1build2
linear programming kit - utility files
https://www.gnu.org/software/glpk/glpk.html
sudo apt install glpk-utilslibglpk-dev 5.0-1build2
linear programming kit - development files
https://www.gnu.org/software/glpk/glpk.html
sudo apt install libglpk-devlibglpk40 5.0-1build2
linear programming kit with integer (MIP) support
https://www.gnu.org/software/glpk/glpk.html
sudo apt install libglpk40glpk 5.0-r3
GLPK: For solving linear and mixed integer programming and other problems
https://www.gnu.org/software/glpk/
sudo apk add glpkglpk-dev 5.0-r3
GLPK: For solving linear and mixed integer programming and other problems (development files)
https://www.gnu.org/software/glpk/
sudo apk add glpk-devglpk 5.0-16.fc44
GNU Linear Programming Kit
https://www.gnu.org/software/glpk/
sudo dnf install glpkglpk-devel 5.0-16.fc44
Development headers and files for GLPK
https://www.gnu.org/software/glpk/
sudo dnf install glpk-develglpk-doc 5.0-16.fc44
Documentation for glpk
https://www.gnu.org/software/glpk/
sudo dnf install glpk-docglpk-utils 5.0-16.fc44
GLPK-related utilities and examples
https://www.gnu.org/software/glpk/
sudo dnf install glpk-utilsglpk 5.0-3
GNU Linear Programming Kit: solve LP, MIP and other problems
https://www.gnu.org/software/glpk/glpk.html
sudo pacman -S glpksource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.