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

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

## 安装

```sh
sudo av install brew:texlab
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install texlab
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install texlab
```

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

### Linux

- apk (92%):

```sh
sudo apk add texlab
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#texlab
```

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

- pacman (92%):

```sh
sudo pacman -S texlab
```

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

- zypper (92%):

```sh
sudo zypper install texlab
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/texlab
```

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

## 软件包事实

- **软件包键:** brew:texlab
- **软件包管理器:** Homebrew
- **版本:** 5.26.0
- **来源摘要:** Implementation of the Language Server Protocol for LaTeX
- **主页:** <https://github.com/latex-lsp/texlab/>
- **仓库:** <https://github.com/latex-lsp/texlab>
- **最后更新:** 2026-06-25T22:50:20Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- texlab (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

texlab is a Rust implementation of the Language Server Protocol for LaTeX. It belongs to the post-LSP generation of editor tooling: instead of every editor maintaining its own LaTeX parser and build integration, one language server provides completions, diagnostics, build support, and forward-search-oriented configuration to LSP-capable editors.

### 项目历史

The official repository describes texlab as a cross-platform LSP server that provides rich editing support for the LaTeX typesetting system and can be used with any editor implementing LSP. Its README identifies Rust as the build dependency and Patrick Forster as maintainer.

### 采用历史

texlab spread through editor extensions and package managers rather than through a single editor distribution. The README notes precompiled binaries for Windows, Linux, and macOS, manual installation through package managers, and a project warning that crates.io is no longer the preferred install path for server releases.

### 使用方式

Users install texlab directly or via an editor extension, then edit LaTeX workspaces through an LSP client. The server can operate without a TeX distribution for editing features, but compilation support depends on having a TeX distribution or a tool such as Tectonic available.

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

For package maintainers, texlab is the canonical small binary that lets Neovim, VS Code, Sublime Text, Emacs LSP clients, and other editors share LaTeX intelligence. Its packaging story matters because editor plugins often expect to download or find exactly this executable on PATH.

### 时间线

- 2019: VS Code extension changelog records adoption of TexLab v1.0.0.
- 2020s: texlab is packaged across Homebrew, Nix, MacPorts, Alpine, Arch, Scoop, and other systems.
- 2026: GitHub release metadata on the project page shows continuing releases, including v5.x.

### Related projects

- LaTeX and TeX Live provide the document toolchain texlab integrates with for builds.
- Tectonic is documented as a supported compilation backend example.
- Editor LSP clients provide the front ends through which users normally experience texlab.

### 来源

- <https://github.com/latex-lsp/texlab - official README describes texlab as a cross-platform LaTeX LSP server, documents package-manager/prebuilt installation, Rust builds, usage, and maintainer.>
- <https://github.com/latex-lsp/texlab-vscode/blob/master/CHANGELOG.md - official extension changelog records update to TexLab v1.0.0 in 2019.>
- <https://github.com/latex-lsp/texlab/wiki - official wiki documentation.>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- Nix - texlab: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/texlab/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - texlab - 5.26.0-r0: normalized package name match | Alpine Linux edge package indexes: texlab from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Implementation of the Language Server Protocol for LaTeX | https://github.com/latex-lsp/texlab
- pacman - texlab - 5.25.1-2: normalized package name match | Arch Linux sync databases: texlab from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A cross-platform implementation of the Language Server Protocol for LaTeX. | https://github.com/latex-lsp/texlab/
- zypper - texlab - 5.24.0-1.4: normalized package name match | openSUSE Tumbleweed package metadata: texlab from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Implementation of the Language Server Protocol for LaTeX | https://github.com/latex-lsp/texlab
- MacPorts - texlab: normalized package name match | MacPorts ports tree: tex/texlab/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/texlab: normalized package name match | Scoop official bucket manifest trees: bucket/texlab.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

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