# Install mlpack with Homebrew, MacPorts, apt, dnf

Scalable C++ machine learning library. Version 4.8.0 via Homebrew; verified 2026-06-25. Also installable with debian: sudo apt install libmlpack-dev.

## 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## Package facts

- **Package key:** brew:mlpack
- **Package manager:** Homebrew
- **Version:** 4.8.0
- **Source summary:** Scalable C++ machine learning library
- **Homepage:** <https://www.mlpack.org>
- **Repository:** <https://github.com/mlpack/mlpack>
- **Last updated:** 2026-06-25T13:37:55+02:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

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

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 4.8.0
## 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

## 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-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)


## Sources

- 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
