# 使用 Homebrew, apk, dnf, Nix, pacman, scoop, winget, zypper 安装 ty

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

## 安装

```sh
sudo av install brew:ty
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ty
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add ty
```

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

- dnf (92%):

```sh
sudo dnf install ty
```

  证据: Fedora Rawhide package metadata: ty from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#ty
```

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

- pacman (92%):

```sh
sudo pacman -S ty
```

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

- zypper (92%):

```sh
sudo zypper install python313-ty
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/ty
```

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

- winget (92%):

```sh
winget install --id astral-sh.ty -e
```

  证据: Windows Package Manager source index: astral-sh.ty from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:ty
- **软件包管理器:** Homebrew
- **版本:** 0.0.65
- **来源摘要:** Extremely fast Python type checker, written in Rust
- **主页:** <https://docs.astral.sh/ty/>
- **仓库:** <https://github.com/astral-sh/ty>
- **最后更新:** 2026-07-30T19:13:13Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ty (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

ty is Astral's Rust-written Python type checker and language server. Astral presents it as the next tool in the same high-performance Python developer-tooling line as Ruff and uv.

### 项目历史

Astral announced ty as a beta type checker and language server after building a reputation around fast Python tooling. The official README states that ty is in beta, uses 0.0.x versioning, and does not yet promise a stable API, so its history is still early and deliberately pre-1.0.

The project is developed in close relationship with Ruff: the README says development currently takes place in the Ruff repository for changes to the Rust source contained in its submodule.

### 采用历史

Astral positions ty as an alternative to mypy, Pyright, and Pylance, emphasizing speed, gradual adoption, editor features, and support for partially typed code. The docs and README highlight editor integrations for VS Code, PyCharm, Neovim, and other LSP-capable clients.

The Homebrew formula's presence alongside packages in apk, dnf, Nix, Arch, Scoop, Winget, and zypper reflects rapid package-manager adoption typical of Astral tools, even while ty remains beta.

### 使用方式

Package users run `ty check` from the CLI or use ty as a language server in editors. The README recommends `uvx ty check` for quick use, while the documentation covers installation, configuration, diagnostics, suppression comments, project support, and editor setup.

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

ty matters in the package-manager niche because it extends the modern Rust-for-Python-tooling pattern from Ruff and uv into static typing. For maintainers, it is another fast single-command tool that can be wired into editors, CI, pre-commit workflows, and distro packages without a bespoke Python runtime story.

### 时间线

- 2025: Astral announced ty as a beta Python type checker and language server.
- 2025-2026: Official docs described CLI, language-server, configuration, rule, and editor-integration workflows.
- 2026: The Homebrew formula lists ty with broader cross-platform package-manager coverage.

### Related projects

- Related projects include Ruff, uv, mypy, Pyright, Pylance, Pyre, and Python editor integrations that consume language-server features.

### 来源

- <https://astral.sh/blog/ty>
- <https://docs.astral.sh/ty/>
- <https://docs.astral.sh/ty/features/language-server/>
- <https://github.com/astral-sh/ty#readme>
- source_facts.package-manager


## 安全说明

没有找到 ty 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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: pyproject.toml, ty.toml, ~/.config/ty/ty.toml, $XDG_CONFIG_HOME/ty/ty.toml
- Windows: pyproject.toml, ty.toml, %APPDATA%\ty\ty.toml
## 其他软件包管理器记录

- Nix - ty: normalized package name match | nixpkgs package indexes: pkgs/by-name/ty/ty/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - ty - 0.0.63-r0: normalized package name match | Alpine Linux edge package indexes: ty from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Extremely fast Python type checker | https://github.com/astral-sh/ty
- apk - ty-bash-completion - 0.0.63-r0: normalized package name match | Alpine Linux edge package indexes: ty-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for ty | https://github.com/astral-sh/ty
- apk - ty-fish-completion - 0.0.63-r0: normalized package name match | Alpine Linux edge package indexes: ty-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fish completions for ty | https://github.com/astral-sh/ty
- apk - ty-pyc - 0.0.63-r0: normalized package name match | Alpine Linux edge package indexes: ty-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for ty | https://github.com/astral-sh/ty
- apk - ty-zsh-completion - 0.0.63-r0: normalized package name match | Alpine Linux edge package indexes: ty-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Zsh completions for ty | https://github.com/astral-sh/ty
- dnf - python3-ty - 0.0.58-2.fc45: normalized package name match | Fedora Rawhide package metadata: python3-ty from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Importable Python module for ty | https://github.com/astral-sh/ty
- dnf - ty - 0.0.58-2.fc45: normalized package name match | Fedora Rawhide package metadata: ty from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Extremely fast Python type checker and language server | https://github.com/astral-sh/ty
- pacman - ty - 0.0.65-1: normalized package name match | Arch Linux sync databases: ty from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Extremely fast Python type checker and language server, written in Rust | https://github.com/astral-sh/ty
- zypper - python313-ty - 0.0.56-1.2: normalized package name match | openSUSE Tumbleweed package metadata: python313-ty from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | An extremely fast Python type checker and language server, written in Rust | https://github.com/astral-sh/ty
- zypper - python314-ty - 0.0.56-1.2: normalized package name match | openSUSE Tumbleweed package metadata: python314-ty from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | An extremely fast Python type checker and language server, written in Rust | https://github.com/astral-sh/ty
- Scoop - main/ty: normalized package name match | Scoop official bucket manifest trees: bucket/ty.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - astral-sh.ty: normalized package name match | Windows Package Manager source index: astral-sh.ty from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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