# 使用 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
- **版本:** 0.1.7
- **来源摘要:** Package manager for Standard ML libraries and programs
- **主页:** <https://github.com/diku-dk/smlpkg>
- **仓库:** <https://github.com/diku-dk/smlpkg>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- smlpkg (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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
## 其他软件包管理器记录

- 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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
