# 使用 Homebrew, apt, MacPorts 安装 lft

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

## 安装

```sh
sudo av install brew:lft
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lft
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lft
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install lft
```

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

## 软件包事实

- **软件包键:** brew:lft
- **软件包管理器:** Homebrew
- **版本:** 3.99
- **来源摘要:** Layer Four Traceroute (LFT), an advanced traceroute tool
- **主页:** <https://pwhois.org/lft/>
- **最后更新:** 2026-07-20T15:27:15Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- lft (别名)
- whob (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

LFT, Layer Four Traceroute, is a network diagnostic tool that extends traceroute-style path discovery with TCP, UDP, ICMP, AS lookup, netblock lookup, and firewall-aware heuristics. It is packaged together with WhoB, a whois-oriented companion tool for routed IP address context.

### 项目历史

The official LFT page says LFT was first released publicly in 1998 under the name FFT. Its distinguishing idea was tracing with transport-layer probes, including TCP SYN or FIN probes to arbitrary services, instead of relying only on the classic UDP probe pattern associated with traditional traceroute.

The project has continued as an operational networking tool rather than a large hosted source-code community. The 3.95, 3.96, and 3.97 changelog entries document modernization work such as getaddrinfo/getnameinfo migration, asynchronous DNS through c-ares, Path MTU discovery, ncurses watch mode, and ECMP-stable tracing.

### 采用历史

LFT's adoption is strongest among network engineers, reverse engineers, and operators who need route visibility across firewalls, ECMP paths, or protocol-specific forwarding behavior. Packaging in Homebrew, Debian, Ubuntu, and MacPorts makes it available in the same toolbox as traceroute, mtr, tcpdump, and whois.

### 使用方式

Users run `lft` to trace a path with TCP, UDP, ICMP, or RFC 1393 style probes, then use options for AS numbers, netblock names, verbose packet interpretation, or newer visual/statistical output. The bundled `whob` client provides quick origin-ASN and registry context for IP addresses.

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

LFT is a classic small networking package: specialized, privilege-sensitive, and valuable when the default platform traceroute does not model the path a service actually takes. Its continued packaging matters because it preserves a 1990s diagnostic idea that remains relevant on filtered and load-balanced networks.

### 时间线

- 1998: The tool was released publicly under the name FFT, according to the official authors' note.
- Version 2.5: Recent releases at that point included WhoB as a standalone client in the LFT binary directory.
- 2026-03: LFT 3.95 modernized resolver APIs and added asynchronous DNS.
- 2026: LFT 3.96 added active Path MTU Discovery and richer per-hop statistics.
- 2026-04: LFT 3.98 was announced with build-system fixes for Linux packaging and autoconf.

### Related projects

- LFT is related to traceroute, tcpdump/libpcap, whois clients, Prefix WhoIs, RIPE NCC and Team Cymru ASN lookups, mtr, and other operator-focused path diagnosis tools.

### 来源

- <https://formulae.brew.sh/formula/lft>
- <https://pwhois.org/lft>
- <https://pwhois.org/lft/CHANGELOG>
- <https://pwhois.org/lft/lft-manpage.html>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - lft - 3.91-2: normalized package name match | Debian stable package indexes: lft from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | layer-four traceroute | https://pwhois.org/lft/
- Ubuntu apt - lft - 3.91-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: lft from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | layer-four traceroute | http://pwhois.org/lft/
- MacPorts - lft: normalized package name match | MacPorts ports tree: net/lft/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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