# 使用 Homebrew, MacPorts, Nix 安装 smlpkg

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

## 安装

```sh
sudo av install brew:smlpkg
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install smlpkg
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install smlpkg
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#smlpkg
```

  证据: nixpkgs package indexes: pkgs/by-name/sm/smlpkg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:smlpkg
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/smlpkg>
- **版本:** 0.1.7
- **来源摘要:** Package manager for Standard ML libraries and programs
- **主页:** <https://github.com/diku-dk/smlpkg>
- **仓库:** <https://github.com/diku-dk/smlpkg>
- **许可证:** MIT
- **源码归档:** <https://github.com/diku-dk/smlpkg/archive/refs/tags/v0.1.7.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- smlpkg (cli)
- smlpkg (别名)

## 依赖

- gmp

## 构建依赖

- mlton

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.1.7
- 本地数据: OK
- 上游仓库: https://github.com/diku-dk/smlpkg
- 检测到的最新版本: v0.1.7 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

smlpkg is a generic package manager for Standard ML libraries and programs.

### 项目历史

The official README says smlpkg assumes nothing about the Standard ML compiler in use and centers package handling around semantic versioning.

The README also says the package manager is almost a complete port of the Futhark package manager, which was designed and implemented in Haskell by Troels Henriksen.

### 采用历史

The official README lists Standard ML package examples across MLKit, MLton, SMLtoJs, and PolyML-oriented workflows.

Input package facts show distribution through Homebrew, MacPorts, and Nix.

### 使用方式

`smlpkg add github.com/diku-dk/sml-random` adds a dependency, modifying or creating `sml.pkg`.

`smlpkg sync` populates the `lib` directory from dependencies listed in `sml.pkg`.

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

smlpkg matters because Standard ML historically lacked a single dominant package-manager workflow; this project gives SML libraries a small semver-based dependency tool.

Its compiler-agnostic stance makes it relevant across MLton, MLKit, SMLtoJs, and related SML ecosystems.

### 时间线

- 2026: Official GitHub releases list v0.1.7 as the latest release dated 2026-01-09.

### Related projects

- Related projects named by the official README include Futhark's package manager, MLton, MLKit, SMLtoJs, GitHub, and GitLab.

### 来源

- <https://github.com/diku-dk/smlpkg#readme>
- source_facts.package-manager


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: sml.pkg
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** smlpkg
- **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

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

- Nix - smlpkg: normalized package name match | nixpkgs package indexes: pkgs/by-name/sm/smlpkg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - smlpkg: normalized package name match | MacPorts ports tree: devel/smlpkg/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://pkg.so/zh-hans/package-publishers/) - Belongs to a package publishing or registry command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [mlton](https://pkg.so/zh-hans/brew/mlton/) - Build dependency declared by Homebrew.
- [vcpkg](https://pkg.so/zh-hans/brew/vcpkg/) - Shares pkgdb curated category or tags: cli, developer-tools, libraries, package-manager.
- [smlfmt](https://pkg.so/zh-hans/brew/smlfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, sml, standard-ml.
- [millet](https://pkg.so/zh-hans/brew/millet/) - Shares pkgdb curated category or tags: cli, developer-tools, sml, standard-ml.
- [uv](https://pkg.so/zh-hans/brew/uv/) - Shares pkgdb curated category or tags: cli, developer-tools, package-manager.
- [pnpm](https://pkg.so/zh-hans/brew/pnpm/) - Shares pkgdb curated category or tags: cli, developer-tools, package-manager.
- [mint](https://pkg.so/zh-hans/brew/mint/) - Shares pkgdb curated category or tags: cli, developer-tools, package-manager.
- [composer](https://pkg.so/zh-hans/brew/composer/) - Shares pkgdb curated category or tags: cli, developer-tools, package-manager.
- [lunarml](https://pkg.so/zh-hans/brew/lunarml/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, gmp, ml.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
