# Install mlpack with Homebrew, apt, dnf, MacPorts

Scalable C++ machine learning library. Version 4.8.0 via Homebrew; verified 2026-06-25.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mlpack
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mlpack
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:mlpack
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mlpack>
- **Version:** 4.8.0
- **Source summary:** Scalable C++ machine learning library
- **Homepage:** <https://www.mlpack.org>
- **Repository:** <https://github.com/mlpack/mlpack>
- **Upstream docs:** <https://www.mlpack.org/doc>
- **License:** BSD-3-Clause AND MPL-2.0 AND BSL-1.0 AND MIT
- **Source archive:** <https://mlpack.org/files/mlpack-4.8.0.tar.gz>
- **Last updated:** 2026-06-25T13:37:55+02:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

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

## Dependencies

- armadillo
- cereal
- ensmallen

## Build dependencies

- cmake
- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.8.0
- Package-manager updated: 2026-06-25
- Local data: ok
- Upstream repository: https://www.mlpack.org
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### How it is used

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.

### Sources

- <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/>


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mlpack
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- 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-3.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Command-line executables for mlpack (machine learning library) | http://www.mlpack.org
- dnf - mlpack-devel - 4.7.0-3.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development headers for mlpack (C++ machine learning library) | http://www.mlpack.org
- dnf - mlpack-licenses - 4.7.0-3.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Licenses and information files for mlpack (machine learning library) | http://www.mlpack.org
- dnf - mlpack-python3 - 4.7.0-3.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Scientific computing packages](https://www.automicvault.com/pkg/scientific-computing-tools/) - Matched scientific computing metadata.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [grt](https://www.automicvault.com/pkg/brew/grt/) - Shares av.db curated category or tags: cli, cpp, machine-learning, science.
- [liblinear](https://www.automicvault.com/pkg/brew/liblinear/) - Shares av.db curated category or tags: cli, cpp, machine-learning, science.
- [tinysvm](https://www.automicvault.com/pkg/brew/tinysvm/) - Shares av.db curated category or tags: cli, library, machine-learning, science.
- [gibbslda](https://www.automicvault.com/pkg/brew/gibbslda/) - Shares av.db curated category or tags: cli, machine-learning, science.
- [flann](https://www.automicvault.com/pkg/brew/flann/) - Shares av.db curated category or tags: cli, library, machine-learning, science.
- [openvino](https://www.automicvault.com/pkg/brew/openvino/) - Shares av.db curated category or tags: cli, machine-learning, science.
- [btllib](https://www.automicvault.com/pkg/brew/btllib/) - Shares av.db curated category or tags: cli, library, science.
- [clhep](https://www.automicvault.com/pkg/brew/clhep/) - Shares av.db curated category or tags: cli, library, science.

## Combined YAML source

View the package source record on GitHub. [combined/mlpack.yml](https://github.com/automic-vault/db/blob/main/combined/mlpack.yml)


## Sources

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