# 使用 Homebrew, MacPorts, Nix, zypper, scoop, winget 安装 mihomo

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

## 安装

```sh
sudo av install brew:mihomo
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mihomo
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mihomo
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mihomo
```

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

- zypper (92%):

```sh
sudo zypper install mihomo
```

  证据: openSUSE Tumbleweed package metadata: mihomo from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/mihomo
```

  证据: Scoop official bucket manifest trees: bucket/mihomo.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id MetaCubeX.Mihomo -e
```

  证据: Windows Package Manager source index: MetaCubeX.Mihomo from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:mihomo
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mihomo>
- **版本:** 1.19.29
- **来源摘要:** Another rule-based tunnel in Go, formerly known as ClashMeta
- **主页:** <https://wiki.metacubex.one>
- **仓库:** <https://github.com/MetaCubeX/mihomo>
- **上游文档:** <https://wiki.metacubex.one>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/MetaCubeX/mihomo/archive/refs/tags/v1.19.29.tar.gz>
- **最后更新:** 2026-07-29T17:04:54+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mihomo (cli)
- mihomo (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- 注意事项: You need to customize $HOMEBREW_PREFIX/etc/mihomo/config.yaml.
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.19.29
- 管理器更新时间: 2026-07-29
- 本地数据: OK
- 上游仓库: https://github.com/MetaCubeX/mihomo
- 检测到的最新版本: v1.19.29 (当前)
## 项目历史与用法

mihomo is the MetaCubeX rule-based network tunnel distributed by package managers under the description "formerly known as ClashMeta." MacPorts describes it as a Go program that supports HTTP, SOCKS, VMess, VLESS, Shadowsocks, Trojan, Hysteria, and other protocols, with built-in DNS server functionality including DoH and DoT support.

### 项目历史

Its operational model comes from the Clash-family proxy configuration style. The documentation organizes the system around proxy ports, SOCKS and mixed listeners, TUN and redirect modes, proxy providers, proxy groups, rule providers, route rules, DNS behavior, and an external controller API. The general configuration page shows common runtime controls such as LAN access, authentication for HTTP/SOCKS/mixed proxies, rule/global/direct modes, IPv6, process matching, and a REST-style external controller on a local address.

### 使用方式

Package-manager adoption reflects its role as a proxy core rather than a desktop client: Homebrew, MacPorts, Nix, Scoop, and winget package the executable, while separate dashboards and clients can drive it through configuration files and its controller API. In practice it is used as the engine under rule-based proxy setups on desktops, servers, and gateways, especially where users need protocol diversity, subscription/provider handling, DNS policy, and route selection in one daemon.

### 来源

- <https://formulae.brew.sh/formula/mihomo>
- <https://github.com/MetaCubeX/mihomo/releases>
- <https://ports.macports.org/port/mihomo/details/>
- <https://wiki.metacubex.one/en/>
- <https://wiki.metacubex.one/en/config/general/>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## 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: ~/.config/mihomo/config.yaml, $XDG_CONFIG_HOME/mihomo/config.yaml
- Windows: %USERPROFILE%\.config\mihomo\config.yaml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mihomo
- **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 - mihomo: normalized package name match | nixpkgs package indexes: pkgs/by-name/mi/mihomo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - mihomo - 1.19.29-1.2: normalized package name match | openSUSE Tumbleweed package metadata: mihomo from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The universal proxy platform | https://github.com/MetaCubeX/mihomo
- MacPorts - mihomo: normalized package name match | MacPorts ports tree: net/mihomo/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/mihomo: normalized package name match | Scoop official bucket manifest trees: bucket/mihomo.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - MetaCubeX.Mihomo: normalized package name match | Windows Package Manager source index: MetaCubeX.Mihomo from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [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.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [overtls](https://pkg.so/zh-hans/brew/overtls/) - Shares pkgdb curated category or tags: cli, networking, proxy, tunnel.
- [sing-box](https://pkg.so/zh-hans/brew/sing-box/) - Shares pkgdb curated category or tags: cli, networking, proxy.
- [proxychains-ng](https://pkg.so/zh-hans/brew/proxychains-ng/) - Shares pkgdb curated category or tags: cli, networking, proxy.
- [libproxy](https://pkg.so/zh-hans/brew/libproxy/) - Shares pkgdb curated category or tags: cli, networking, proxy.
- [gost](https://pkg.so/zh-hans/brew/gost/) - Shares pkgdb curated category or tags: cli, go, networking, proxy, tunnel.
- [connect](https://pkg.so/zh-hans/brew/connect/) - Shares pkgdb curated category or tags: cli, networking, proxy.
- [obfs4proxy](https://pkg.so/zh-hans/brew/obfs4proxy/) - Shares pkgdb curated category or tags: cli, go, networking, proxy.
- [proxytunnel](https://pkg.so/zh-hans/brew/proxytunnel/) - Shares pkgdb curated category or tags: cli, networking, proxy, tunnel.

## Combined YAML source

View the package source record on GitHub. [combined/mihomo.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mihomo.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
