# 使用 Homebrew, apk, MacPorts, Nix, pacman, zypper, scoop, winget 安装 gleam

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

## 安装

```sh
sudo av install brew:gleam
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gleam
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gleam
```

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

### Linux

- apk (92%):

```sh
sudo apk add gleam
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#gleam
```

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

- pacman (92%):

```sh
sudo pacman -S gleam
```

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

- zypper (92%):

```sh
sudo zypper install gleam
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/gleam
```

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

- winget (92%):

```sh
winget install --id Gleam.Gleam -e
```

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

## 软件包事实

- **软件包键:** brew:gleam
- **软件包管理器:** Homebrew
- **版本:** 1.18.1
- **来源摘要:** Statically typed language for the Erlang VM
- **主页:** <https://gleam.run>
- **仓库:** <https://github.com/gleam-lang/gleam>
- **最后更新:** 2026-08-02T00:48:40Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gleam (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Gleam is a statically typed functional programming language and toolchain for the Erlang VM, with JavaScript runtime support added as the language matured. Its package-manager identity is unusually compact: the same `gleam` command covers compiling, formatting, project management, package publishing, and editor integration.

### 项目历史

Louis Pilfold announced Gleam v0.1 in April 2019 as a friendly language for maintainable, scalable systems on the Erlang virtual machine. The early design combined ML-family type-system ideas with BEAM interoperability, so Gleam modules could call Erlang and Elixir code and expose libraries back to the wider BEAM ecosystem.

The 1.0 release in March 2024 marked the language, compiler, build tool, package manager, formatter, language server, and WASM/JavaScript compiler API as stable public surfaces. That milestone turned Gleam from a promising BEAM experiment into a production-oriented language with a semver promise for its core tooling.

### 采用历史

Gleam grew around BEAM developers who wanted static types without giving up Erlang's runtime model or Elixir's library reach. Official documentation also points learners from Elixir, Elm, Erlang, PHP, Python, and Rust toward migration guides, which reflects the language's role as a bridge between functional-web communities.

The project maintains its own package index and documentation flow, making third-party libraries visible without depending solely on Hex package pages. That helped Gleam develop a recognizable ecosystem around web services, deployment guides, editor tooling, and core-team packages.

### 使用方式

Practitioners use `gleam new`, `gleam build`, `gleam test`, `gleam format`, and `gleam publish` as the normal project loop. In package-manager terms, installing the Homebrew formula gives the compiler plus the build and package tools, with `gleam.toml` as the project manifest.

Gleam is most often chosen for network services, web backends, command-backed project automation, and typed libraries that need BEAM interoperation. The JavaScript target extends the same source language to browsers and other JavaScript runtimes.

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

For package maintainers, Gleam is a small but complete language stack: one binary, one manifest, official docs, official package search, and reproducible project commands. That makes it easy to package compared with language ecosystems that split compiler, formatter, package manager, and language server into separate distributions.

### 时间线

- 2019: Gleam v0.1 announced as the first public release.
- 2024: Gleam v1.0 released with stable language and tooling APIs.

### Related projects

- Gleam is related to Erlang and Elixir through the BEAM runtime, and to Elm, OCaml, and Rust through type-system and developer-experience influences.

### 来源

- <https://github.com/gleam-lang/gleam>
- <https://gleam.run/documentation/>
- <https://gleam.run/news/gleam-version-1/>
- <https://gleam.run/news/hello-gleam/>


## 安全说明

narrow executable package without higher-risk signals.

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


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

- Nix - gleam: normalized package name match | nixpkgs package indexes: pkgs/by-name/gl/gleam/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - gleam - 1.18.0-r0: normalized package name match | Alpine Linux edge package indexes: gleam from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Statically-typed language that compiles to Erlang and JS | https://gleam.run/
- pacman - gleam - 1.18.1-1: normalized package name match | Arch Linux sync databases: gleam from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Friendly programming language for building type-safe and scalable systems | https://github.com/gleam-lang/gleam
- zypper - gleam - 1.17.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: gleam from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A friendly language for building type-safe, scalable systems! | https://gleam.run/
- MacPorts - gleam: normalized package name match | MacPorts ports tree: lang/gleam/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/gleam: normalized package name match | Scoop official bucket manifest trees: bucket/gleam.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Gleam.Gleam: normalized package name match | Windows Package Manager source index: Gleam.Gleam from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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