Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

155.5. glpk-5.0

Linear and mixed-integer programming, with its own modelling language

5.0-1 · GPL-3.0-or-later · 0.2 SBU · 1.2 MiB, 6 files · 41_system, 740 of 1047 · ports/core/math/glpk

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

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/math.txt:

GMP is what makes the exact simplex exact; without it a mixed-integer answer is optimal-looking and occasionally wrong at the last bit, silently.

Depends on: gmp.

Required by (1): octave.

Sources: glpk-5.0.tar.gz (3.9 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install glpk'

build.sh:

./configure \
	--prefix=/usr \
	--libdir=/usr/lib \
	--disable-static \
	--with-gmp
make
make DESTDIR=$PKG install

Programs: glpsol.

Libraries: libglpk.so.

Directories: /usr/share/licenses/glpk.