# 使用 Homebrew, apk, apt, Nix, pacman 安装 hy

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

## 安装

```sh
sudo av install brew:hy
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install hy
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add hy
```

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

- Debian apt (92%):

```sh
sudo apt install hy
```

  证据: Debian stable package indexes: hy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#hy
```

  证据: nixpkgs package indexes: hy from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S hy
```

  证据: Arch Linux sync databases: hy from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:hy
- **软件包管理器:** Homebrew
- **版本:** 1.3.1
- **来源摘要:** Dialect of Lisp that's embedded in Python
- **主页:** <https://github.com/hylang/hy>
- **最后更新:** 2026-08-01T18:08:24Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- hy (别名)
- hy2py (别名)
- hyc (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Hy is a Lisp dialect embedded in Python. It reads Lisp syntax and transforms it into Python abstract syntax tree objects, giving users macros and Lisp syntax while keeping access to Python built-ins, libraries, packaging, and runtime behavior.

### 项目历史

The public repository was created in December 2012. Hy's README frames the project with the line that Lisp and Python should love each other, and explains the core technical idea: Hy code becomes Python AST, so Python's ecosystem remains available.

The 1.0.0 announcement in September 2024 described that release as arriving after nearly 12 years of on-and-off development and real-world use. The NEWS file states that Hy follows semantic versioning since 1.0.0, marking a stabilization point after the long 0.x period.

### 采用历史

Hy is distributed through Python packaging and also appears in system package managers such as Homebrew, Debian, Ubuntu, Arch, Alpine, and Nix. Its community surfaces include GitHub Discussions, Stack Overflow's `hy` tag, documentation on hylang.org, and a browser console for trying the language.

### 使用方式

Users run `hy` for a REPL, execute `.hy` programs with `hy myprogram.hy`, translate with `hy2py`, and compile with `hyc`. The homepage examples show Python-equivalent forms for assignment, sorting, functions, context managers, comprehensions, and macros.

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

Hy is interesting to package nerds because it is not a separate virtual machine or runtime island. It packages as a Python-hosted language that can import Python modules directly, which makes it easier to install experimentally while still offering Lisp macros and syntax.

### 时间线

- 2012: Public GitHub repository created.
- 2024: 1.0.0 released after nearly 12 years of development.
- 2024: NEWS states semantic versioning begins with 1.0.0.
- 2026: 1.3.0 release notes list support for Python 3.9 through Python 3.15.

### Related projects

- Hy is related to Python, Lisp-family languages, macro systems, Python AST tooling, PyPI packaging, and editor/REPL workflows for experimental languages.

### 来源

- Hy homepage, README, NEWS, 1.0.0 announcement, repository metadata, and Homebrew package metadata were used.


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - hy - 1.0.0-1: normalized package name match | Debian stable package indexes: hy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lisp (s-expression) based frontend to Python (cmdline) | http://hylang.org/
- Debian apt - hy-doc - 1.0.0-1: normalized package name match | Debian stable package indexes: hy-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lisp (s-expression) based frontend to Python (documentation) | http://hylang.org/
- Debian apt - python3-hy - 1.0.0-1: normalized package name match | Debian stable package indexes: python3-hy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lisp (s-expression) based frontend to Python 3 | http://hylang.org/
- Nix - hy: normalized package name match | nixpkgs package indexes: hy from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - hy - 0.28.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: hy from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lisp (s-expression) based frontend to Python (cmdline) | http://hylang.org/
- Ubuntu apt - hy-doc - 0.28.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: hy-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lisp (s-expression) based frontend to Python (documentation) | http://hylang.org/
- Ubuntu apt - python3-hy - 0.28.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-hy from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lisp (s-expression) based frontend to Python 3 | http://hylang.org/
- apk - hy - 1.1.0-r1: normalized package name match | Alpine Linux edge package indexes: hy from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Dialect of Lisp that's embedded in Python | http://hylang.org/
- apk - hy-pyc - 1.1.0-r1: normalized package name match | Alpine Linux edge package indexes: hy-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for hy | http://hylang.org/
- pacman - hy - 1:1.3.0-1: normalized package name match | Arch Linux sync databases: hy from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A dialect of Lisp that's embedded in Python | http://hylang.org/


## Combined YAML source

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