# 使用 Homebrew, apk, chocolatey, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 tailscale

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

## 安装

```sh
sudo av install brew:tailscale
```

## 代理安全回答

tailscale controls private network connectivity and identity-bound device access.

- **凭据访问:** Reads auth state, device identity, and network configuration.
- **远程变更:** Can change connectivity, serve routes, and expose local services.
- **发布/制品风险:** Can make internal services reachable through a tailnet.
- **推荐控制:** Gate up, serve, funnel, exit-node, and auth-key operations.
- **代理使用指南:** Allow status checks; require approval before changing network exposure or authentication.

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tailscale
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tailscale
```

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

### Linux

- apk (92%):

```sh
sudo apk add tailscale
```

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

- dnf (92%):

```sh
sudo dnf install tailscale
```

  证据: Fedora Rawhide package metadata: tailscale 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#tailscale
```

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

- pacman (92%):

```sh
sudo pacman -S tailscale
```

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

- zypper (92%):

```sh
sudo zypper install tailscale
```

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

### Windows

- Chocolatey (92%):

```sh
choco install tailscale
```

  证据: Chocolatey community package catalog: tailscale from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','synologydrive'

- Scoop (92%):

```sh
scoop install extras/tailscale
```

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

- winget (92%):

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

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

## 软件包事实

- **软件包键:** brew:tailscale
- **软件包管理器:** Homebrew
- **版本:** 1.98.10
- **来源摘要:** Easiest, most secure way to use WireGuard and 2FA
- **主页:** <https://tailscale.com>
- **仓库:** <https://github.com/tailscale/tailscale>
- **最后更新:** 2026-07-29T00:53:44Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tailscale (别名)
- tailscaled (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Tailscale is a WireGuard-based, identity-aware mesh networking system with a prominent open source CLI and daemon. For package-manager users, it is both a networking product and a system package that installs `tailscale` and `tailscaled` onto developer laptops, servers, NAS devices, containers, and CI runners.

### 项目历史

The public GitHub repository was created in January 2020. The README says it contains most of Tailscale's open source code, notably the `tailscaled` daemon and the `tailscale` CLI, while platform GUI wrappers live elsewhere or are not always open source. Official docs describe Tailscale as a Zero Trust identity-based connectivity platform that creates encrypted point-to-point connections using WireGuard and forms a peer-to-peer mesh network called a tailnet.

### 采用历史

Tailscale adoption spread through official packages and platform clients rather than only source builds. The repository README points users to pkgs.tailscale.com for distro and platform packages, and the input package facts list Homebrew, MacPorts, Nix, Arch, Alpine, Fedora, openSUSE, Chocolatey, Scoop, WinGet, and others. That broad packaging footprint reflects its common role as developer infrastructure for SSH, subnet routing, exit nodes, remote access, and service-to-service connectivity.

### 使用方式

On Unix-like systems, package users usually install the daemon and CLI, authenticate the node, then use `tailscale` commands to bring the node up, inspect status, route traffic, configure SSH or Serve/Funnel features, and debug connectivity. The daemon stores node state locally unless configured for memory-only ephemeral state.

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

Package nerds care about Tailscale because it turns VPN setup into an installable system service with a scriptable CLI. It also makes packaging details matter: daemon state paths, systemd or launchd integration, kernel versus userspace networking, distro packages, Homebrew service behavior, and reproducible binaries all affect whether a node can join and stay healthy in a tailnet.

### 时间线

- 2020: Public GitHub repository created.
- 2020: Repository README identifies `tailscaled` and `tailscale` as the main open source daemon and CLI.
- 2022: Official changelog introduced Tailscale SSH beta.
- 2022: Official changelog documented ACL tags reaching general availability.
- 2026: GitHub metadata shows a large open source repository with tens of thousands of stars and thousands of forks.

### Related projects

- Tailscale relates to WireGuard, DERP relay servers, SSH, zero-trust networking, subnet routing, exit nodes, MagicDNS, Headscale, distro service packaging, and OS package managers.

### 来源

- <https://api.github.com/repos/tailscale/tailscale>
- <https://github.com/tailscale/tailscale>
- <https://tailscale.com/changelog>
- <https://tailscale.com/docs>
- <https://tailscale.com/docs/concepts/what-is-tailscale>
- source_facts.package-manager


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## 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.


## Credential files

- Unix: /Library/Tailscale/tailscaled.state, ~/.local/share/tailscale/tailscaled.state, /opt/homebrew/var/lib/tailscale/tailscaled.state, /usr/local/var/lib/tailscale/tailscaled.state, $XDG_DATA_HOME/tailscale/tailscaled.state
## 其他软件包管理器记录

- Nix - tailscale: normalized package name match | nixpkgs package indexes: pkgs/by-name/ta/tailscale/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - tailscale - 1.98.8-r1: normalized package name match | Alpine Linux edge package indexes: tailscale from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The easiest, most secure way to use WireGuard and 2FA | https://tailscale.com/
- apk - tailscale-bash-completion - 1.98.8-r1: normalized package name match | Alpine Linux edge package indexes: tailscale-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for tailscale | https://tailscale.com/
- apk - tailscale-doc - 1.98.8-r1: normalized package name match | Alpine Linux edge package indexes: tailscale-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The easiest, most secure way to use WireGuard and 2FA (documentation) | https://tailscale.com/
- apk - tailscale-fish-completion - 1.98.8-r1: normalized package name match | Alpine Linux edge package indexes: tailscale-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for tailscale | https://tailscale.com/
- apk - tailscale-openrc - 1.98.8-r1: normalized package name match | Alpine Linux edge package indexes: tailscale-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The easiest, most secure way to use WireGuard and 2FA (OpenRC init scripts) | https://tailscale.com/
- apk - tailscale-systemd - 1.98.8-r1: normalized package name match | Alpine Linux edge package indexes: tailscale-systemd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The easiest, most secure way to use WireGuard and 2FA (systemd files) | https://tailscale.com/
- apk - tailscale-zsh-completion - 1.98.8-r1: normalized package name match | Alpine Linux edge package indexes: tailscale-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for tailscale | https://tailscale.com/
- dnf - tailscale - 1.98.8-1.fc45: normalized package name match | Fedora Rawhide package metadata: tailscale from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | The easiest, most secure way to use WireGuard and 2FA | https://github.com/tailscale/tailscale
- pacman - tailscale - 1.98.10-1: normalized package name match | Arch Linux sync databases: tailscale from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A mesh VPN that makes it easy to connect your devices, wherever they are. | https://tailscale.com
- zypper - tailscale - 1.98.10-1.1: normalized package name match | openSUSE Tumbleweed package metadata: tailscale from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The easiest, most secure way to use WireGuard and 2FA | https://github.com/tailscale/tailscale
- zypper - tailscale-bash-completion - 1.98.10-1.1: normalized package name match | openSUSE Tumbleweed package metadata: tailscale-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tailscale bash completion | https://github.com/tailscale/tailscale
- zypper - tailscale-fish-completion - 1.98.10-1.1: normalized package name match | openSUSE Tumbleweed package metadata: tailscale-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tailscale fish completion | https://github.com/tailscale/tailscale
- zypper - tailscale-zsh-completion - 1.98.10-1.1: normalized package name match | openSUSE Tumbleweed package metadata: tailscale-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tailsacle zsh completion | https://github.com/tailscale/tailscale
- MacPorts - tailscale: normalized package name match | MacPorts ports tree: net/tailscale/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - tailscale: normalized package name match | Chocolatey community package catalog: tailscale from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','synologydrive'


## Combined YAML source

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