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

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

## 安装

```sh
sudo av install brew:lftp
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lftp
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lftp
```

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

### Linux

- apk (92%):

```sh
sudo apk add lftp
```

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

- Debian apt (92%):

```sh
sudo apt install lftp
```

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

- dnf (92%):

```sh
sudo dnf install lftp
```

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

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

- pacman (92%):

```sh
sudo pacman -S lftp
```

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

- zypper (92%):

```sh
sudo zypper install lftp
```

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

### Windows

- Chocolatey (92%):

```sh
choco install lftp
```

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

- Scoop (92%):

```sh
scoop install main/lftp
```

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

## 软件包事实

- **软件包键:** brew:lftp
- **软件包管理器:** Homebrew
- **版本:** 4.9.3
- **来源摘要:** Sophisticated file transfer program
- **主页:** <https://lftp.yar.ru/>
- **仓库:** <https://github.com/lavv17/lftp>
- **最后更新:** 2026-06-22T14:05:10-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- lftp (别名)
- lftpget (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

lftp is a long-running command-line file transfer client with FTP, FTPS, HTTP, HTTPS, HFTP, FISH, SFTP, file, mirror, queue, job-control, and BitTorrent features. It is one of the richer Unix-style transfer shells packaged by general-purpose package managers.

### 项目历史

The official manual describes lftp as a sophisticated file transfer program with a shell-like command language, background jobs, queues, conditionals, bookmarks, and automatic retry/resume behavior. Its evolution has been incremental and durable: the events log records active releases from the 2.x era through the 4.x era.

Milestones in the official events log show the tool expanding beyond FTP: WebDAV support appeared in 2005, GNU TLS support was added in 2005, SFTP appeared in development snapshots in 2003, BitTorrent support reached the 4.0.0 release in 2009, and DHT plus other BitTorrent extensions appeared in 2012.

### 采用历史

lftp is widely packaged across Unix-like systems and Windows-oriented package ecosystems, including Homebrew, Debian, Ubuntu, Fedora/DNF, Arch, Alpine, MacPorts, Nix, Scoop, Chocolatey, and openSUSE. That breadth reflects its role as a standard scripting and mirroring client for administrators who need more than a minimal FTP command.

### 使用方式

Common use centers on interactive sessions, scripted transfers, backgrounded jobs, `mirror` for directory synchronization, reverse mirroring for upload workflows, parallel transfers, bookmarks, and URL-based access to multiple protocols. The startup configuration paths and `.netrc` support make it fit naturally into Unix automation.

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

lftp is package-nerd catnip because it compresses a surprising amount of transfer machinery into one CLI: protocol clients, retry semantics, queueing, shell grammar, mirroring, and background detachment. It is often the package people install when `ftp`, `sftp`, `wget`, or `curl` are each almost, but not quite, the right tool.

### 时间线

- 1999-11-12: The official events log notes lftp 2.1-era development.
- 2003-11-20: SFTP protocol support was implemented in a development snapshot.
- 2005-02-25: lftp 3.1.0 added WebDAV support.
- 2005-05-16: lftp 3.2.0 added GNU TLS support.
- 2009-09-11: lftp 4.0.0 added a BitTorrent client.
- 2012-09-27: lftp 4.4.0 added DHT and other BitTorrent extensions.
- 2024-11-08: lftp 4.9.3 was released with fixes for SFTP, UDP tracker looping, crashes, compilation, and translations.

### Related projects

- lftp overlaps with ftp clients, OpenSSH sftp, curl, wget, rsync-style mirroring workflows, BitTorrent clients, GNU TLS/OpenSSL, WebDAV clients, and Unix job-control shells.

### 来源

- <https://formulae.brew.sh/formula/lftp>
- <https://github.com/lavv17/lftp>
- <https://lftp.yar.ru/>
- <https://lftp.yar.ru/events.html>
- <https://lftp.yar.ru/lftp-man.html>
- <https://raw.githubusercontent.com/lavv17/lftp/master/NEWS>


## 安全说明

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

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


## 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: /etc/lftp.conf, ~/.lftprc, ~/.lftp/rc, ~/.config/lftp/rc

## Credential files

- Unix: ~/.netrc, ~/.local/share/lftp/bookmarks, ~/.lftp/bookmarks
## 其他软件包管理器记录

- Debian apt - lftp - 4.9.2-3+b1: normalized package name match | Debian stable package indexes: lftp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Sophisticated command-line FTP/HTTP/BitTorrent client programs | https://lftp.yar.ru
- Nix - lftp: normalized package name match | nixpkgs package indexes: pkgs/by-name/lf/lftp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - lftp - 4.9.2-2ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: lftp from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Sophisticated command-line FTP/HTTP/BitTorrent client programs | https://lftp.yar.ru
- apk - lftp - 4.9.3-r0: normalized package name match | Alpine Linux edge package indexes: lftp from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Sophisticated ftp/http client | https://lftp.yar.ru
- apk - lftp-doc - 4.9.3-r0: normalized package name match | Alpine Linux edge package indexes: lftp-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Sophisticated ftp/http client (documentation) | https://lftp.yar.ru
- apk - lftp-zsh-completion - 4.9.3-r0: normalized package name match | Alpine Linux edge package indexes: lftp-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Zsh completions for lftp | https://lftp.yar.ru
- dnf - lftp - 4.9.3-7.fc45: normalized package name match | Fedora Rawhide package metadata: lftp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A sophisticated file transfer program | http://lftp.yar.ru/
- dnf - lftp-scripts - 4.9.3-7.fc45: normalized package name match | Fedora Rawhide package metadata: lftp-scripts from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Scripts for lftp | http://lftp.yar.ru/
- pacman - lftp - 4.9.3-2: normalized package name match | Arch Linux sync databases: lftp from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Sophisticated command line based FTP client | https://lftp.yar.ru/
- zypper - lftp - 4.9.2-9.3: normalized package name match | openSUSE Tumbleweed package metadata: lftp from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Command Line File Transfer Program | http://lftp.yar.ru/
- MacPorts - lftp: normalized package name match | MacPorts ports tree: net/lftp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - lftp: normalized package name match | Chocolatey community package catalog: lftp from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','kindle'
- Scoop - main/lftp: normalized package name match | Scoop official bucket manifest trees: bucket/lftp.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/lftp.yml](https://github.com/mxcl/pkgdb/blob/main/combined/lftp.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
