Automic VaultAutomic Vault

brew

使用 Homebrew, Nix, MacPorts, winget 安装 lightgbm

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install lightgbm

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install LightGBM

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

Linux

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

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

Windows

Windows Package Manager已验证 · 92%
winget install --id Microsoft.LightGBM -e

Windows Package Manager source index · Microsoft.LightGBM · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Fast, distributed, high performance gradient boosting framework

命令和别名

  • lightgbm

历史

项目历史与用法

LightGBM, short for Light Gradient Boosting Machine, is a high-performance gradient boosting framework for tree-based learning. It became one of the standard packages for tabular machine learning because it combines fast histogram-based training, low memory use, categorical-feature handling, and parallel or distributed execution.

项目历史

The GitHub repository was created on 2016-08-05. The README describes LightGBM as a gradient boosting framework designed for faster training, lower memory usage, better accuracy, parallel and distributed learning, GPU learning, and large-scale data.

The official papers connect the implementation to Microsoft Research work on communication-efficient parallel decision trees in 2016 and the 2017 NIPS paper "LightGBM: A Highly Efficient Gradient Boosting Decision Tree." The paper introduced Gradient-based One-Side Sampling and Exclusive Feature Bundling as key techniques for speeding up GBDT training.

The repository moved from Microsoft/LightGBM to lightgbm-org/LightGBM in March 2026. The maintainers documented the move in issue 7187 and stated that the same maintainers, including the creator of LightGBM, continued managing the official source repository.

采用历史

The README says LightGBM has been widely used in winning machine-learning competition solutions. Its package footprint spans command-line binaries, Python, R, conda, CRAN, NuGet, Winget, Homebrew, and downstream integrations such as Spark-oriented wrappers and inference converters.

LightGBM's adoption followed a practical need in tabular-data workflows: teams wanted XGBoost-class accuracy with faster training iterations and better memory behavior on large datasets.

使用方式

Users train models from the CLI or language bindings for regression, classification, ranking, and large-scale distributed tasks. Common package-manager use cases include installing the CLI for experiments, installing Python or R bindings for notebooks and pipelines, and installing the library as a dependency of higher-level ML systems.

为什么软件包爱好者会关心

LightGBM is package-nerd significant because it is a research system that became packaging infrastructure: native C++, Python wheels, R packages, GPU builds, distributed modes, and many downstream wrappers all have to agree on the same fast tree learner.

It is also a canonical example of ML packaging complexity, where one upstream project must serve CLI users, language-binding users, GPU users, and distro maintainers without losing performance-sensitive native code paths.

时间线

  • 2016-08-05: GitHub repository created.
  • 2016: NIPS paper on communication-efficient parallel decision trees published by LightGBM authors.
  • 2017-02-27: Official experiment documentation records the first version of comparison and parallel experiments.
  • 2017: NIPS paper "LightGBM: A Highly Efficient Gradient Boosting Decision Tree" published.
  • 2018: GPU acceleration paper cited by the README.
  • 2020-03-08: Official experiment documentation updated against a then-new master branch.
  • 2022: Quantized training paper cited by the README.
  • 2026-03: Repository moved from Microsoft/LightGBM to lightgbm-org/LightGBM.

Related projects

  • Related projects include XGBoost, scikit-learn integrations, SynapseML, FLAML, Optuna, Treelite, SHAP, ML.NET, ONNX conversion tools, and many language bindings listed by the LightGBM README.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

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

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

https://github.com/lightgbm-org/LightGBM

安装元数据

软件包元数据

软件包键brew:lightgbm
版本4.7.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/lightgbm
主页https://lightgbm.readthedocs.io/en/latest/
仓库https://github.com/lightgbm-org/LightGBM
上游文档https://lightgbm.readthedocs.io/en/stable
许可证MIT
源码归档https://github.com/lightgbm-org/LightGBM.git
最后更新2026-07-18T21:02:43Z
Pulseupdated
依赖libomp
构建依赖cmake
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Nix95%

lightgbm

nix profile install nixpkgs#lightgbm
  • normalized package name match
  • 匹配方式:Lightgbm
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/li/lightgbm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

LightGBM

sudo port install LightGBM
  • normalized package name match
  • 匹配方式:Lightgbm
MacPorts ports tree · api.github.com · MacPorts ports tree: math/LightGBM/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
winget95%

Microsoft.LightGBM

winget install --id Microsoft.LightGBM -e
  • normalized package name match
  • 匹配方式:Lightgbm
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Microsoft.LightGBM from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 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