Automic VaultAutomic Vault

brew

Install glpk with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper

Library for Linear and Mixed-Integer Programming. Version 5.0 via Homebrew; verified 2026-06-19.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install glpk

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install glpk

MacPorts ports tree · math/glpk/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add glpk

Alpine Linux edge package indexes · glpk · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install glpk-doc

Debian stable package indexes · glpk-doc · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install glpk

Fedora Rawhide package metadata · glpk · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#glpk

nixpkgs package indexes · pkgs/by-name/gl/glpk/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S glpk

Arch Linux sync databases · glpk · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install glpk

openSUSE Tumbleweed package metadata · glpk · source: download.opensuse.org

overview

Package summary

Library for Linear and Mixed-Integer Programming

Commands and aliases

  • glpsol

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2000: glpk-1.1.1 appeared in the old GNU FTP archive.
  • 2001: GLPK 2.x and 3.0 tarballs appeared in the old GNU FTP archive.
  • 2017: GLPK 4.61 added support for building a re-entrant package for multithreaded environments.
  • 2018: GLPK 4.65 added LP/MIP preprocessing API routines and cover-cut work.
  • 2020: GLPK 5.0 was released and copyright was transferred to the Free Software Foundation.

Related projects

  • GLPK is related to GNU MathProg, AMPL-style model files, MPS and CPLEX LP interchange formats, and higher-level optimization packages that call external LP/MIP solvers.

security posture

Risk level: green

library-like package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • library-like package without higher-risk signals

Signals

  • metadata:library-like

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 13 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
glpsolcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version5.0
manager updated2026-06-19
local dataok
upstreamnot checked
latest detectednot detected

https://www.gnu.org/software/glpk/

install metadata

Package metadata

Package keybrew:glpk
Version5.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/glpk
Homepagehttps://www.gnu.org/software/glpk/
Upstream docshttps://www.gnu.org/software/glpk
LicenseGPL-3.0-or-later
Source archivehttps://ftpmirror.gnu.org/gnu/glpk/glpk-5.0.tar.gz
Last updated2026-06-19T12:31:20-07:00
Pulseupdated
Dependenciesgmp
Bottleavailable (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-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameglpk
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

glpk-doc 5.0-1

linear programming kit - documentation files

https://www.gnu.org/software/glpk/glpk.html

sudo apt install glpk-doc
  • Section: doc
  • Architecture: all
  • Source Package: glpk
  • normalized package name match
  • Matched by: Glpk
Debian stable package indexes · deb.debian.org · Debian stable package indexes: glpk-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

glpk-utils 5.0-1+b2

linear programming kit - utility files

https://www.gnu.org/software/glpk/glpk.html

sudo apt install glpk-utils
  • Section: math
  • Architecture: amd64
  • Source Package: glpk
  • 2 dependencies
  • normalized package name match
  • Matched by: Glpk
Debian stable package indexes · deb.debian.org · Debian stable package indexes: glpk-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libglpk-dev 5.0-1+b2

linear programming kit - development files

https://www.gnu.org/software/glpk/glpk.html

sudo apt install libglpk-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: glpk
  • 4 dependencies
  • normalized package name match
  • Matched by: Glpk
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libglpk-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libglpk40 5.0-1+b2

linear programming kit with integer (MIP) support

https://www.gnu.org/software/glpk/glpk.html

sudo apt install libglpk40
  • Section: libs
  • Architecture: amd64
  • Source Package: glpk
  • 6 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: Glpk
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libglpk40 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

glpk

nix profile install nixpkgs#glpk
  • normalized package name match
  • Matched by: Glpk
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gl/glpk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

glpk-doc 5.0-1build2

linear programming kit - documentation files

https://www.gnu.org/software/glpk/glpk.html

sudo apt install glpk-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: glpk
  • normalized package name match
  • Matched by: Glpk
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: glpk-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

glpk-utils 5.0-1build2

linear programming kit - utility files

https://www.gnu.org/software/glpk/glpk.html

sudo apt install glpk-utils
  • Section: universe/math
  • Architecture: amd64
  • Source Package: glpk
  • 2 dependencies
  • normalized package name match
  • Matched by: Glpk
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: glpk-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libglpk-dev 5.0-1build2

linear programming kit - development files

https://www.gnu.org/software/glpk/glpk.html

sudo apt install libglpk-dev
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: glpk
  • 4 dependencies
  • normalized package name match
  • Matched by: Glpk
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libglpk-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libglpk40 5.0-1build2

linear programming kit with integer (MIP) support

https://www.gnu.org/software/glpk/glpk.html

sudo apt install libglpk40
  • Section: universe/math
  • Architecture: amd64
  • Source Package: glpk
  • 6 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: Glpk
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libglpk40 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

glpk 5.0-r3

GLPK: For solving linear and mixed integer programming and other problems

https://www.gnu.org/software/glpk/

sudo apk add glpk
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: glpk
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Glpk
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glpk from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

glpk-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-dev
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: glpk
  • 1 dependencies
  • normalized package name match
  • Matched by: Glpk
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glpk-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

glpk 5.0-16.fc44

GNU Linear Programming Kit

https://www.gnu.org/software/glpk/

sudo dnf install glpk
  • License: GPL-3.0-or-later AND MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: glpk
  • 8 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Glpk
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: glpk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

glpk-devel 5.0-16.fc44

Development headers and files for GLPK

https://www.gnu.org/software/glpk/

sudo dnf install glpk-devel
  • License: GPL-3.0-or-later AND MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: glpk
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Glpk
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: glpk-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

glpk-doc 5.0-16.fc44

Documentation for glpk

https://www.gnu.org/software/glpk/

sudo dnf install glpk-doc
  • License: GFDL-1.3-or-later AND OFL-1.1-RFN AND Knuth-CTAN AND GPL-1.0-or-later AND LPPL-1.3a
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: glpk
  • 1 provides
  • normalized package name match
  • Matched by: Glpk
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: glpk-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

glpk-utils 5.0-16.fc44

GLPK-related utilities and examples

https://www.gnu.org/software/glpk/

sudo dnf install glpk-utils
  • License: GPL-3.0-or-later AND MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: glpk
  • 5 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Glpk
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: glpk-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

glpk 5.0-3

GNU Linear Programming Kit: solve LP, MIP and other problems

https://www.gnu.org/software/glpk/glpk.html

sudo pacman -S glpk
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • 2 dependencies
  • normalized package name match
  • Matched by: Glpk
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: glpk from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment