Automic VaultAutomic Vault

brew

使用 Homebrew, apk, chocolatey, dnf, MacPorts, Nix, pacman, zypper, apt 安装 glpk

查看 glpk 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install glpk

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install glpk

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add glpk

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

Fedora dnf已验证 · 92%
sudo dnf install glpk

Fedora Rawhide package metadata · glpk · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#glpk

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

Arch Linux pacman已验证 · 92%
sudo pacman -S glpk

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

openSUSE zypper已验证 · 92%
sudo zypper install glpk

openSUSE Tumbleweed package metadata · glpk · 来源: download.opensuse.org

Debian apt已验证 · 92%
sudo apt install glpk-doc

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

概览

软件包摘要

Library for Linear and Mixed-Integer Programming

命令和别名

  • glpsol

历史

项目历史与用法

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.

时间线

  • 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.

安全态势

风险级别:绿色

library-like package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • library-like package without higher-risk signals

信号

  • metadata:library-like

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 13 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
glpsolcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-26
管理器版本5.0
管理器更新时间2026-06-19
本地数据OK
上游not checked
检测到的最新版本未检测到

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

安装元数据

软件包元数据

软件包键brew:glpk
版本5.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/glpk
主页https://www.gnu.org/software/glpk/
上游文档https://www.gnu.org/software/glpk
许可证GPL-3.0-or-later
源码归档https://ftpmirror.gnu.org/gnu/glpk/glpk-5.0.tar.gz
最后更新2026-06-19T12:31:20-07:00
Pulseupdated
依赖gmp
Bottle可用 (于 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未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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