# 使用 Homebrew, MacPorts, Nix 安装 mint

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

## 安装

```sh
sudo av install brew:mint
```

## 代理安全回答

mint installs and runs Swift command-line packages for developer workflows.

- **凭据访问:** Reads Git credentials, package config, and environment variables.
- **远程变更:** Can fetch packages and run installed tools that call remote systems.
- **发布/制品风险:** Can run release or code-generation tools that produce artifacts.
- **推荐控制:** Gate tool installs and secret-backed tool execution.
- **代理使用指南:** Allow version/list commands; require approval before installing or running tools that publish or deploy.

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mint
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mint
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mint
```

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

## 软件包事实

- **软件包键:** brew:mint
- **软件包管理器:** Homebrew
- **版本:** 0.18.0
- **来源摘要:** Dependency manager that installs and runs Swift command-line tool packages
- **主页:** <https://github.com/yonaskolb/Mint>
- **仓库:** <https://github.com/yonaskolb/Mint>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mint (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Mint is the yonaskolb/Mint project's package manager for Swift command-line tools built with the Swift Package Manager. Its README frames the core workflow as installing and running a versioned executable package directly from a GitHub shorthand or Git URL, for example running SwiftLint or XcodeGen without maintaining a separate Homebrew formula for each tool.

### 项目历史

The tool fills a narrow gap in the Swift ecosystem. Homebrew is convenient for global installation, but the Mint README points out that formulas must be created and maintained and that running specific versions can be awkward. Mint instead uses SPM builds, caches builds by package version, permits multiple versions side by side, can link one version into ~/.mint/bin, and can run packages without linking them globally.

### 使用方式

In project usage, Mintfile is the important adoption pattern: teams can commit a list of versioned Swift CLI dependencies and run mint bootstrap or mint run so every developer and CI job uses the same tools. The README lists common compatible tools such as SwiftLint, SwiftFormat, SwiftGen, Sourcery, Carthage, and XcodeGen, showing its role as dependency management for iOS and Swift developer tooling rather than as a general-purpose language package manager.

### 来源

- <https://formulae.brew.sh/formula/mint>
- <https://github.com/yonaskolb/Mint>


## 安全说明

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

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