# 使用 Homebrew, apk, MacPorts, Nix 安装 murex

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

## 安装

```sh
sudo av install brew:murex
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install murex
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install murex
```

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

### Linux

- apk (92%):

```sh
sudo apk add murex
```

  证据: Alpine Linux edge package indexes: murex from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#murex
```

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

## 软件包事实

- **软件包键:** brew:murex
- **软件包管理器:** Homebrew
- **版本:** 7.2.1001
- **来源摘要:** Bash-like shell designed for greater command-line productivity and safer scripts
- **主页:** <https://murex.rocks>
- **仓库:** <https://github.com/lmorg/murex>
- **最后更新:** 2026-07-29T17:05:01+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- murex (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Murex is an alternative command-line shell from the lmorg/murex project, written in Go and positioned as a Bash-like shell for safer scripts and more productive interactive use. Its public documentation describes it as a cross-platform shell that keeps compatibility with ordinary Unix commands while adding typed, content-aware pipelines and richer handling for structured data.

### 项目历史

The central technical idea is that pipeline data can carry type information rather than being treated only as byte streams. Murex documents native support for JSON, YAML, XML, CSV, tables, and related formats, and its language tour presents it as a typed shell that can still call existing CLI tools without special adapters. The project also emphasizes error handling, unit tests, autocomplete, and a more capable REPL, aiming at DevOps-style one-liners and scripts where Bash's stringly behavior becomes fragile.

### 使用方式

Its package-manager niche is the modern-shell lane beside fish, nushell, xonsh, and Oil: not a POSIX /bin/sh replacement, but a daily shell and scripting language for users who work heavily with structured command output. In practice it is installed as the murex executable, then used either interactively or for scripts that benefit from first-class JSON/YAML/table processing.

### 来源

- <https://formulae.brew.sh/formula/murex>
- <https://github.com/lmorg/murex>
- <https://murex.rocks/>
- <https://murex.rocks/commands/>
- <https://murex.rocks/tour.html>
- <https://pkg.go.dev/github.com/lmorg/murex>
- <https://www.freshports.org/shells/murex/>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

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

- Nix - murex: normalized package name match | nixpkgs package indexes: pkgs/by-name/mu/murex/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - murex - 7.2.1001-r4: normalized package name match | Alpine Linux edge package indexes: murex from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Intuitive, typed and content aware shell | https://murex.rocks/
- apk - murex-doc - 7.2.1001-r4: normalized package name match | Alpine Linux edge package indexes: murex-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Intuitive, typed and content aware shell (documentation) | https://murex.rocks/
- MacPorts - murex: normalized package name match | MacPorts ports tree: shells/murex/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/murex.yml](https://github.com/mxcl/pkgdb/blob/main/combined/murex.yml)


## 来源

- 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
