# 使用 Homebrew, apk, apt, dnf, Nix, zypper 安装 lsyncd

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

## 安装

```sh
sudo av install brew:lsyncd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lsyncd
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add lsyncd
```

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

- Debian apt (92%):

```sh
sudo apt install lsyncd
```

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

- dnf (92%):

```sh
sudo dnf install lsyncd
```

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

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

- zypper (92%):

```sh
sudo zypper install lsyncd
```

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

## 软件包事实

- **软件包键:** brew:lsyncd
- **软件包管理器:** Homebrew
- **版本:** 2.3.1
- **来源摘要:** Synchronize local directories with remote targets
- **主页:** <https://github.com/lsyncd/lsyncd>
- **仓库:** <https://github.com/lsyncd/lsyncd>
- **最后更新:** 2026-05-17T16:38:55Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- lsyncd (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Lsyncd, short for Live Syncing Daemon, is a Unix daemon that watches filesystem events and batches changes into rsync or rsync+ssh transfers.

### 项目历史

The official README and manual describe Lsyncd as a lightweight live mirror solution built around platform filesystem event APIs: inotify on Linux and fsevents on macOS. Instead of introducing a new filesystem or block replication layer, it waits briefly, collapses change events, and spawns rsync or related actions to keep a target tree synchronized.

Lsyncd's configuration model is a major part of its identity. The manual documents Lua-syntax configuration files, daemon-wide `settings`, default sync layers such as `default.rsync`, `default.rsyncssh`, and `default.direct`, and lower-level customization paths that can range from shell commands to Lua code.

### 采用历史

The project has unusually strong adoption signals for a daemon-sized Unix utility: GitHub shows roughly 6.1k stars, 474 forks, 926 commits, and a long issue history. The supplied package-manager facts show packaging across Homebrew, Debian, Ubuntu, Fedora/DNF, Alpine, Nix, and openSUSE/Zypper, which is consistent with a tool used by administrators rather than a single-platform script.

Recent official release notes show renewed maintenance. Version 2.3.0 is described as the first release 'since quite a while' under a new maintainer, adding nix flake support, tunnel commands, `batchSizeLimit`, `-onepass`, crontab support, and relative executable paths; version 2.3.1 followed with bug fixes and cleanup.

### 使用方式

The official invocation docs say Lsyncd can be configured mainly by passing a config file as the only command-line option, or cursorily through options such as `-rsync` and `-rsyncssh`. The manual's examples show typical one-way mirroring from a source directory to a local destination, remote rsync target, or remote host and target directory.

The project explicitly warns against treating it as a two-way synchronization system. Its README frames Lsyncd as best for slowly changing local directory trees, especially one-way sync from a secure area to a less secure mirror, and points users at specialized tools such as git-annex for bidirectional or conflict-aware workflows.

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

Lsyncd is package-nerd significant because it sits at the intersection of classic Unix tools: kernel file notifications, rsync, ssh, daemonization, and Lua configuration. It is the kind of package administrators install to avoid a heavier distributed filesystem while still getting near-real-time mirroring from familiar components.

Its cross-distro packaging also makes it useful as a history marker: it is not a fashionable single-ecosystem tool, but a durable sysadmin daemon that earned its place in major package sets through practical deployment value.

### 时间线

- 2.1 era: Documentation says Lsyncd is predominantly configured through a config file.
- 2.2.1: README states Lsyncd requires rsync >= 3.1 on source and target machines.
- 2.3.0: Release notes describe renewed maintenance and new features including nix flakes, tunnels, `-onepass`, and crontab support.
- 2.3.1: Latest GitHub release lists bug fixes and code cleanup.

### Related projects

- rsync is the default synchronization backend.
- ssh is used by the rsync+ssh mode to handle remote moves efficiently.
- Lua supplies the configuration language.
- DRBD, GlusterFS, BindFS, Mirror, and git-annex are discussed in the README as related synchronization approaches with different trade-offs.

### 来源

- <https://github.com/lsyncd/lsyncd>
- <https://github.com/lsyncd/lsyncd/releases>
- <https://lsyncd.github.io/lsyncd/>
- <https://lsyncd.github.io/lsyncd/manual/config/file/>
- <https://lsyncd.github.io/lsyncd/manual/invoking/>
- source_facts.package-manager


## 安全说明

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


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

- Debian apt - lsyncd - 2.2.3-1+b1: normalized package name match | Debian stable package indexes: lsyncd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | daemon to synchronize local directories using rsync | https://github.com/axkibe/lsyncd
- Nix - lsyncd: normalized package name match | nixpkgs package indexes: pkgs/by-name/ls/lsyncd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - lsyncd - 2.2.3-1: normalized package name match | Ubuntu 24.04 LTS package indexes: lsyncd from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | daemon to synchronize local directories using rsync | https://github.com/axkibe/lsyncd
- apk - lsyncd - 2.3.1-r1: normalized package name match | Alpine Linux edge package indexes: lsyncd from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Live Syncing (Mirror) Daemon | https://github.com/lsyncd/lsyncd
- apk - lsyncd-doc - 2.3.1-r1: normalized package name match | Alpine Linux edge package indexes: lsyncd-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Live Syncing (Mirror) Daemon (documentation) | https://github.com/lsyncd/lsyncd
- apk - lsyncd-openrc - 2.3.1-r1: normalized package name match | Alpine Linux edge package indexes: lsyncd-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Live Syncing (Mirror) Daemon (OpenRC init scripts) | https://github.com/lsyncd/lsyncd
- dnf - lsyncd - 2.3.1-13.fc45: normalized package name match | Fedora Rawhide package metadata: lsyncd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | File change monitoring and synchronization daemon | https://axkibe.github.io/lsyncd/
- zypper - lsyncd - 2.3.1-2.9: normalized package name match | openSUSE Tumbleweed package metadata: lsyncd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Live Syncing (Mirror) Daemon | https://github.com/axkibe/lsyncd


## Combined YAML source

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