# 使用 Homebrew, MacPorts, apt, dnf 安装 mlpack

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

## 安装

```sh
sudo av install brew:mlpack
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mlpack
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mlpack
```

  证据: MacPorts ports tree: math/mlpack/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install libmlpack-dev
```

  证据: Debian stable package indexes: libmlpack-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install mlpack-bin
```

  证据: Fedora Rawhide package metadata: mlpack-bin from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:mlpack
- **软件包管理器:** Homebrew
- **版本:** 4.8.0
- **来源摘要:** Scalable C++ machine learning library
- **主页:** <https://www.mlpack.org>
- **仓库:** <https://github.com/mlpack/mlpack>
- **最后更新:** 2026-06-25T13:37:55+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mlpack_adaboost (别名)
- mlpack_approx_kfn (别名)
- mlpack_bayesian_linear_regression (别名)
- mlpack_cf (别名)
- mlpack_dbscan (别名)
- mlpack_decision_tree (别名)
- mlpack_det (别名)
- mlpack_emst (别名)
- mlpack_fastmks (别名)
- mlpack_gmm_generate (别名)
- mlpack_gmm_probability (别名)
- mlpack_gmm_train (别名)
- mlpack_hmm_generate (别名)
- mlpack_hmm_loglik (别名)
- mlpack_hmm_train (别名)
- mlpack_hmm_viterbi (别名)
- mlpack_hoeffding_tree (别名)
- mlpack_image_converter (别名)
- mlpack_kde (别名)
- mlpack_kernel_pca (别名)
- mlpack_kfn (别名)
- mlpack_kmeans (别名)
- mlpack_knn (别名)
- mlpack_krann (别名)
- mlpack_lars (别名)
- mlpack_linear_regression (别名)
- mlpack_linear_svm (别名)
- mlpack_lmnn (别名)
- mlpack_local_coordinate_coding (别名)
- mlpack_logistic_regression (别名)
- mlpack_lsh (别名)
- mlpack_mean_shift (别名)
- mlpack_nbc (别名)
- mlpack_nca (别名)
- mlpack_nmf (别名)
- mlpack_pca (别名)
- mlpack_perceptron (别名)
- mlpack_preprocess_binarize (别名)
- mlpack_preprocess_describe (别名)
- mlpack_preprocess_imputer (别名)
- mlpack_preprocess_one_hot_encoding (别名)
- mlpack_preprocess_scale (别名)
- mlpack_preprocess_split (别名)
- mlpack_radical (别名)
- mlpack_random_forest (别名)
- mlpack_range_search (别名)
- mlpack_softmax_regression (别名)
- mlpack_sparse_coding (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 4.8.0
## 项目历史与用法

mlpack is an open-source C++ machine-learning library whose published history traces back to an original inception in 2007 and a public late-2011 release. The 2013 JMLR paper by Ryan R. Curtin, James R. Cline, N. P. Slagle, William B. March, Parikshit Ram, Nishant A. Mehta, and Alexander G. Gray presented MLPACK as a scalable, multi-platform C++ library with a simple API for new users and high-performance flexibility for expert users.

### 项目历史

The project grew into a broader scientific-computing library and community. A 2018 OpenReview workshop paper described mlpack as emphasizing speed and flexibility and implementing a wide variety of machine-learning algorithms. The 2023 JOSS paper for mlpack 4 marked a major technical milestone: a fast, header-only C++ library release with authorship spanning the expanded contributor community.

### 使用方式

In practice mlpack is used either as a C++ library, commonly by including `<mlpack.hpp>` and linking against Armadillo, or through command-line programs and bindings for Python, Julia, Go, and R. Its own README describes the project as a machine-learning analogue to LAPACK and as a "swiss army knife" for machine-learning researchers, while the homepage names Armadillo, ensmallen, and cereal as core foundations. In package-manager ecosystems it occupies the intersection of scientific C++ development library and installed algorithm CLI suite, with Homebrew exposing many `mlpack_*` executables for common methods such as k-means, PCA, nearest-neighbor search, random forests, regression, and preprocessing.

### 来源

- <https://formulae.brew.sh/formula/mlpack>
- <https://github.com/mlpack/mlpack>
- <https://jmlr.org/papers/v14/curtin13a.html>
- <https://joss.theoj.org/papers/10.21105/joss.05026>
- <https://openreview.net/forum?id=rJxx0Y6NhX>
- <https://raw.githubusercontent.com/mlpack/mlpack/master/README.md>
- <https://www.mlpack.org/>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 其他软件包管理器记录

- Debian apt - libmlpack-dev - 4.6.0-1: normalized package name match | Debian stable package indexes: libmlpack-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | intuitive, fast, scalable C++ machine learning library (development libs) | https://www.mlpack.org/
- Debian apt - mlpack-bin - 4.6.0-1: normalized package name match | Debian stable package indexes: mlpack-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | intuitive, fast, scalable C++ machine learning library (binaries) | https://www.mlpack.org/
- Debian apt - mlpack-doc - 4.6.0-1: normalized package name match | Debian stable package indexes: mlpack-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | intuitive, fast, scalable C++ machine learning library (documentation) | https://www.mlpack.org/
- Debian apt - python3-mlpack - 4.6.0-1: normalized package name match | Debian stable package indexes: python3-mlpack from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | intuitive, fast, scalable C++ machine learning library (Python bindings) | https://www.mlpack.org/
- Ubuntu apt - libmlpack-dev - 4.3.0-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libmlpack-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | intuitive, fast, scalable C++ machine learning library (development libs) | https://www.mlpack.org/
- Ubuntu apt - mlpack-bin - 4.3.0-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: mlpack-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | intuitive, fast, scalable C++ machine learning library (binaries) | https://www.mlpack.org/
- Ubuntu apt - mlpack-doc - 4.3.0-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: mlpack-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | intuitive, fast, scalable C++ machine learning library (documentation) | https://www.mlpack.org/
- Ubuntu apt - python3-mlpack - 4.3.0-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-mlpack from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | intuitive, fast, scalable C++ machine learning library (Python bindings) | https://www.mlpack.org/
- dnf - mlpack-bin - 4.7.0-5.fc45: normalized package name match | Fedora Rawhide package metadata: mlpack-bin from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Command-line executables for mlpack (machine learning library) | http://www.mlpack.org
- dnf - mlpack-devel - 4.7.0-5.fc45: normalized package name match | Fedora Rawhide package metadata: mlpack-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development headers for mlpack (C++ machine learning library) | http://www.mlpack.org
- dnf - mlpack-licenses - 4.7.0-5.fc45: normalized package name match | Fedora Rawhide package metadata: mlpack-licenses from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Licenses and information files for mlpack (machine learning library) | http://www.mlpack.org
- dnf - mlpack-python3 - 4.7.0-5.fc45: normalized package name match | Fedora Rawhide package metadata: mlpack-python3 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Python 3 bindings for mlpack (C++ machine learning library) | http://www.mlpack.org
- MacPorts - mlpack: normalized package name match | MacPorts ports tree: math/mlpack/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/mlpack.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mlpack.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
