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

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

## 安装

```sh
sudo av install brew:typst
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install typst
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install typst
```

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

### Linux

- apk (92%):

```sh
sudo apk add typst
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#typst
```

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

- pacman (92%):

```sh
sudo pacman -S typst
```

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

- zypper (92%):

```sh
sudo zypper install typst
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/typst
```

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

- winget (92%):

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

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

## 软件包事实

- **软件包键:** brew:typst
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/typst>
- **版本:** 0.15.1
- **来源摘要:** Markup-based typesetting system
- **主页:** <https://typst.app/>
- **仓库:** <https://github.com/typst/typst>
- **上游文档:** <https://typst.app/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/typst/typst/archive/refs/tags/v0.15.1.tar.gz>
- **最后更新:** 2026-07-17T13:00:06Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- typst (cli)
- typst (别名)

## 构建依赖

- pkgconf
- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

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

Typst is a markup-based typesetting system and local CLI for compiling documents to PDF and other outputs. In package-manager culture it sits in the same practical niche as TeX engines, Pandoc-adjacent document tools, and reproducible document-build chains, but with a newer language, integrated scripting, fast incremental compilation, and an official online editor.

### 项目历史

The public Typst compiler repository was created in September 2019. The official README describes Typst as a markup-based typesetting system intended to be as powerful as LaTeX while being easier to learn and use, with built-in markup, scripting, math typesetting, bibliography management, and incremental compilation.

Typst opened its public beta and made the compiler open source on March 21, 2023, after a closed preview period. The launch post positioned the compiler as the foundation of the web app and emphasized that open sourcing it meant users could always compile their documents locally.

The 0.1.0 changelog followed on April 4, 2023 and already treated the command-line interface as a first-class surface, documenting `typst compile`, `typst watch`, `typst fonts`, error exit behavior, standard output/input improvements, and direct PDF opening. By 0.15.0 in June 2026, the official changelog covered language, compiler, CLI, HTML, PDF, SVG, PNG, bundle export, fonts, and migration changes.

### 采用历史

Typst's adoption path combined a hosted collaborative editor with a standalone open-source compiler. The README points users to official release binaries, `typst update`, Homebrew, winget, Cargo, Nix, Docker, and Repology-tracked distribution packages; the batch package facts also show packaging across Homebrew, MacPorts, Nix, Arch, Scoop, winget, apk, and openSUSE-related metadata.

For package users, the important adoption milestone was not only that Typst existed as a web app, but that the compiler became a normal local executable. That let editors, CI jobs, document templates, and package managers standardize on `typst compile` and `typst watch` without depending on the hosted service.

### 使用方式

Typical local use is to run `typst compile file.typ` to produce a PDF, or `typst watch file.typ` during editing for incremental recompilation. The README also documents font discovery, custom font paths, environment-variable font paths, and the `typst fonts` command, all of which matter for reproducible builds.

In the package-nerd niche, Typst is often treated as a build tool: install the compiler with the system package manager, pin it in Nix or CI, compile `.typ` sources, and optionally use the Typst Universe ecosystem for templates and packages.

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

Typst matters to package maintainers because it is a young document tool that quickly acquired the distribution surface of an established CLI: official binaries, Rust crates, Homebrew, winget, Nix, containers, and distro packages. It also created a small ecosystem of adjacent tools, including formatters, language-server integrations, GitHub Actions, and template/package distribution.

### 时间线

- 2019: Public typst/typst GitHub repository created.
- 2023-03-21: Typst public beta launched and the compiler was open-sourced.
- 2023-04-04: Typst 0.1.0 changelog documented the new subcommand-based CLI.
- 2026-06-15: Typst 0.15.0 released with broader export, CLI, language, and migration changes.

### Related projects

- LaTeX is the main historical comparison point named by Typst's README.
- Tinymist is the community language-server/editor integration named by the Typst README.
- Typstyle is an adjacent formatter for Typst source code.

### 来源

- <https://api.github.com/repos/typst/typst>
- <https://github.com/typst/typst>
- <https://typst.app/blog/2023/beta-oss-launch/>
- <https://typst.app/docs/changelog/0.1.0/>
- <https://typst.app/docs/changelog/0.15.0/>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** typst
- **Version Scheme:** 1
- **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 - typst: normalized package name match | nixpkgs package indexes: pkgs/by-name/ty/typst/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - typst - 0.15.1-r0: normalized package name match | Alpine Linux edge package indexes: typst from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | New markup-based typesetting system that is powerful and easy to learn | https://github.com/typst/typst
- apk - typst-bash-completion - 0.15.1-r0: normalized package name match | Alpine Linux edge package indexes: typst-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for typst | https://github.com/typst/typst
- apk - typst-doc - 0.15.1-r0: normalized package name match | Alpine Linux edge package indexes: typst-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | New markup-based typesetting system that is powerful and easy to learn (documentation) | https://github.com/typst/typst
- apk - typst-fish-completion - 0.15.1-r0: normalized package name match | Alpine Linux edge package indexes: typst-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for typst | https://github.com/typst/typst
- apk - typst-zsh-completion - 0.15.1-r0: normalized package name match | Alpine Linux edge package indexes: typst-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for typst | https://github.com/typst/typst
- pacman - typst - 1:0.15.1-2: normalized package name match | Arch Linux sync databases: typst from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A markup-based typesetting system for the sciences | https://typst.app
- zypper - hayagriva - 0.15.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: hayagriva from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Standalone CLI of built-in bibliography management tool | https://github.com/typst/typst
- zypper - typst - 0.15.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: typst from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A new markup-based typesetting system that is powerful and easy to learn | https://github.com/typst/typst
- zypper - typst-bash-completion - 0.15.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: typst-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for typst | https://github.com/typst/typst
- zypper - typst-fish-completion - 0.15.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: typst-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish Completion for typst | https://github.com/typst/typst
- zypper - typst-zsh-completion - 0.15.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: typst-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Zsh Completion for typst | https://github.com/typst/typst
- MacPorts - typst: normalized package name match | MacPorts ports tree: textproc/typst/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/typst: normalized package name match | Scoop official bucket manifest trees: bucket/typst.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Typst.Typst: normalized package name match | Windows Package Manager source index: Typst.Typst from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [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.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [fop](https://pkg.so/zh-hans/brew/fop/) - Shares pkgdb curated category or tags: cli, documents, pdf, productivity.
- [yamlresume](https://pkg.so/zh-hans/brew/yamlresume/) - Shares pkgdb curated category or tags: cli, documents, pdf, productivity.
- [sile](https://pkg.so/zh-hans/brew/sile/) - Shares pkgdb curated category or tags: cli, pdf, productivity, typesetting.
- [marp-cli](https://pkg.so/zh-hans/brew/marp-cli/) - Shares pkgdb curated category or tags: cli, pdf, productivity.
- [diff-pdf](https://pkg.so/zh-hans/brew/diff-pdf/) - Shares pkgdb curated category or tags: cli, documents, pdf, productivity.
- [evince](https://pkg.so/zh-hans/brew/evince/) - Shares pkgdb curated category or tags: cli, pdf, productivity.
- [xpdf](https://pkg.so/zh-hans/brew/xpdf/) - Shares pkgdb curated category or tags: cli, pdf, productivity.
- [bookokrat](https://pkg.so/zh-hans/brew/bookokrat/) - Shares pkgdb curated category or tags: cli, pdf, productivity.

## Combined YAML source

View the package source record on GitHub. [combined/typst.yml](https://github.com/mxcl/pkgdb/blob/main/combined/typst.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
