# Install mosml with Homebrew, MacPorts, Nix

Moscow ML. Version 2.10.1 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#mosml.

## Install

```sh
sudo av install brew:mosml
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mosml
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mosml
```

  Evidence: MacPorts ports tree: lang/mosml/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mosml
```

  Evidence: nixpkgs package indexes: pkgs/by-name/mo/mosml/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:mosml
- **Package manager:** Homebrew
- **Version:** 2.10.1
- **Source summary:** Moscow ML
- **Homepage:** <https://mosml.org/>
- **Repository:** <https://github.com/kfl/mosml>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- camlrunm (alias)
- mosml (alias)
- mosmlc (alias)
- mosmllex (alias)
- mosmlyac (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2.10.1
## Project history and usage

Moscow ML is a lightweight implementation of Standard ML. Its project history credits Sergei Romanenko at the Keldysh Institute of Applied Mathematics, Claudio Russo, Niels Kokholm, Ken Friis Larsen, and Peter Sestoft, and notes that it uses the runtime system and many ideas from Xavier Leroy and Damien Doligez's Caml Light implementation.

### Project history

The Moscow ML manual describes version 2.10 as implementing SML as revised in the 1997 Definition, including the SML Modules language, some extensions, much of the SML Basis Library, separate compilation, and generation of standalone executables. The manual also highlights the Moscow ML Modules language, with features such as higher-order functors and other extensions while preserving compatibility goals for SML programs.

### How it is used

Its adoption niche is language education, research, and maintenance of older SML code that benefits from a small interactive system and bytecode compiler. In Homebrew and other package managers, mosml provides the classic Moscow ML toolchain rather than a general-purpose modern ML ecosystem.

### Sources

- <https://formulae.brew.sh/formula/mosml>
- <https://github.com/kfl/mosml>
- <https://mosml.org/>
- <https://mosml.org/manual.pdf>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

- Nix - mosml: normalized package name match | nixpkgs package indexes: pkgs/by-name/mo/mosml/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - mosml: normalized package name match | MacPorts ports tree: lang/mosml/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/mosml.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mosml.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
