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

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

## 安装

```sh
sudo av install brew:syncthing
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install syncthing
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install syncthing
```

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

### Linux

- apk (92%):

```sh
sudo apk add syncthing
```

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

- Debian apt (92%):

```sh
sudo apt install syncthing
```

  证据: Debian stable package indexes: syncthing from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install syncthing
```

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

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

- pacman (92%):

```sh
sudo pacman -S syncthing
```

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

- zypper (92%):

```sh
sudo zypper install syncthing
```

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

### Windows

- Chocolatey (92%):

```sh
choco install syncthing
```

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

- Scoop (92%):

```sh
scoop install main/syncthing
```

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

- winget (92%):

```sh
winget install --id BillStewart.SyncthingWindowsSetup -e
```

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

## 软件包事实

- **软件包键:** brew:syncthing
- **软件包管理器:** Homebrew
- **版本:** 2.1.2
- **来源摘要:** Open source continuous file synchronization application
- **主页:** <https://syncthing.net/>
- **仓库:** <https://github.com/syncthing/syncthing>
- **最后更新:** 2026-07-08T16:33:54Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- syncthing (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Syncthing is an open source continuous file synchronization program built around direct device-to-device syncing, documented protocols, and local ownership of data. It is one of the canonical modern examples of a daemon-plus-CLI package that users install from system package managers on many operating systems.

### 项目历史

The official site describes Syncthing as synchronizing files between two or more computers in real time while keeping data on users' own machines. It emphasizes encrypted communication, authenticated devices, documented protocols, open source code, and open development.

Syncthing's v1.0.0 release notes say the major release recognized that the software was widely used and no longer really in beta, without introducing a breaking change. Its v2.0.0 release notes later introduced major internal and CLI-facing changes, including a switch from LevelDB to SQLite, structured logging, modernized command-line option parsing, and multiple default connections between v2 devices.

### 采用历史

The official getting-started guide assumes users may install on multiple machines and points to community flavors for cross-platform GUI and platform-specific integrations while noting that they share the same core. The input package metadata lists broad packaging across Homebrew, Debian, Ubuntu, Fedora/DNF, Alpine, Arch, Chocolatey, Scoop, winget, MacPorts, Nix, and zypper.

### 使用方式

Common use starts by launching the `syncthing` binary, which creates configuration and crypto keys on first start, opens or serves the local web GUI on localhost, and identifies each machine by a device ID. Users exchange device IDs, add remote devices, and share folders; the daemon then keeps files synchronized continuously.

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

Syncthing matters to package-manager culture because it is a serious long-running network service distributed as a normal user-installable binary. Packagers care about service units, config and state paths, crypto key storage, upgrade behavior, cross-platform builds, and whether GUI wrappers can share a stable core.

### 时间线

- v1.0.0: Release notes state that Syncthing was widely used and no longer really in beta.
- v1.27.0: Documentation records the Unix-like default config and database location changing to XDG state paths.
- v2.0.0: First 2.0 release switched the database backend to SQLite and modernized command-line option parsing.

### Related projects

- The official getting-started guide mentions community flavors such as Syncthing-GTK and platform-specific wrappers for Windows and Android, all sharing the core Syncthing engine.

### 来源

- <https://docs.syncthing.net/intro/getting-started.html>
- <https://docs.syncthing.net/users/config.html>
- <https://github.com/syncthing/syncthing/releases/tag/v1.0.0>
- <https://github.com/syncthing/syncthing/releases/tag/v2.0.0>
- <https://syncthing.net/>
- input 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.


## Configuration files

- macOS: ~/Library/Application Support/Syncthing/config.xml
- Unix: $XDG_STATE_HOME/syncthing/config.xml, ~/.local/state/syncthing/config.xml
- Windows: %LOCALAPPDATA%\Syncthing\config.xml

## Credential files

- macOS: ~/Library/Application Support/Syncthing/cert.pem, ~/Library/Application Support/Syncthing/key.pem
- Unix: $XDG_STATE_HOME/syncthing/cert.pem, $XDG_STATE_HOME/syncthing/key.pem, ~/.local/state/syncthing/cert.pem, ~/.local/state/syncthing/key.pem
- Windows: %LOCALAPPDATA%\Syncthing\cert.pem, %LOCALAPPDATA%\Syncthing\key.pem
## 其他软件包管理器记录

- Debian apt - golang-github-syncthing-syncthing-dev - 1.29.5~ds1-2: normalized package name match | Debian stable package indexes: golang-github-syncthing-syncthing-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | decentralized file synchronization - dev package | https://www.syncthing.net/
- Debian apt - syncthing - 1.29.5~ds1-2: normalized package name match | Debian stable package indexes: syncthing from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | decentralized file synchronization | https://www.syncthing.net/
- Debian apt - syncthing-discosrv - 1.29.5~ds1-2: normalized package name match | Debian stable package indexes: syncthing-discosrv from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | decentralized file synchronization - discovery server | https://www.syncthing.net/
- Debian apt - syncthing-relaysrv - 1.29.5~ds1-2: normalized package name match | Debian stable package indexes: syncthing-relaysrv from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | decentralized file synchronization - relay server | https://www.syncthing.net/
- Nix - syncthing: normalized package name match | nixpkgs package indexes: pkgs/by-name/sy/syncthing/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - golang-github-syncthing-syncthing-dev - 1.27.2~ds4-1: normalized package name match | Ubuntu 24.04 LTS package indexes: golang-github-syncthing-syncthing-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | decentralized file synchronization - dev package | https://www.syncthing.net/
- Ubuntu apt - syncthing - 1.27.2~ds4-1: normalized package name match | Ubuntu 24.04 LTS package indexes: syncthing from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | decentralized file synchronization | https://www.syncthing.net/
- Ubuntu apt - syncthing-discosrv - 1.27.2~ds4-1: normalized package name match | Ubuntu 24.04 LTS package indexes: syncthing-discosrv from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | decentralized file synchronization - discovery server | https://www.syncthing.net/
- Ubuntu apt - syncthing-relaysrv - 1.27.2~ds4-1: normalized package name match | Ubuntu 24.04 LTS package indexes: syncthing-relaysrv from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | decentralized file synchronization - relay server | https://www.syncthing.net/
- apk - syncthing - 2.1.2-r1: normalized package name match | Alpine Linux edge package indexes: syncthing from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Open Source Continuous File Synchronization | https://syncthing.net/
- apk - syncthing-doc - 2.1.2-r1: normalized package name match | Alpine Linux edge package indexes: syncthing-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Open Source Continuous File Synchronization (documentation) | https://syncthing.net/
- apk - syncthing-nftrules - 2.1.2-r1: normalized package name match | Alpine Linux edge package indexes: syncthing-nftrules from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Open Source Continuous File Synchronization (nftables ruleset) | https://syncthing.net/
- apk - syncthing-openrc - 2.1.2-r1: normalized package name match | Alpine Linux edge package indexes: syncthing-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Open Source Continuous File Synchronization (OpenRC init scripts) | https://syncthing.net/
- apk - syncthing-systemd - 2.1.2-r1: normalized package name match | Alpine Linux edge package indexes: syncthing-systemd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Open Source Continuous File Synchronization (systemd files) | https://syncthing.net/
- apk - syncthing-utils - 2.1.2-r1: normalized package name match | Alpine Linux edge package indexes: syncthing-utils from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Syncthing server utilities | https://syncthing.net/
- dnf - syncthing - 2.1.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: syncthing from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Continuous File Synchronization | https://github.com/syncthing/syncthing


## Combined YAML source

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