# 使用 Homebrew, apt, dnf, MacPorts, pacman, zypper 安装 tnftp

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

## 安装

```sh
sudo av install brew:tnftp
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tnftp
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tnftp
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install tnftp
```

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

- dnf (92%):

```sh
sudo dnf install tnftp
```

  证据: Fedora Rawhide package metadata: tnftp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S tnftp
```

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

- zypper (92%):

```sh
sudo zypper install tnftp
```

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

## 软件包事实

- **软件包键:** brew:tnftp
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/tnftp>
- **版本:** 20260211
- **来源摘要:** NetBSD's FTP client
- **主页:** <https://cdn.netbsd.org/pub/NetBSD/misc/tnftp/>
- **上游文档:** <https://cdn.netbsd.org/pub/NetBSD/misc/tnftp/>
- **许可证:** BSD-2-Clause AND BSD-3-Clause AND ISC
- **源码归档:** <https://cdn.netbsd.org/pub/NetBSD/misc/tnftp/tnftp-20260211.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- tnftp (cli)
- tnftp (别名)

## macOS 提供的库

- libedit
- ncurses

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 20260211
- 本地数据: OK
- 上游仓库: https://cdn.netbsd.org/pub/NetBSD/misc/tnftp/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

tnftp is the portable packaging of NetBSD's enhanced `ftp` client. It carries the classic Berkeley FTP client lineage forward through NetBSD, while adding script-friendly URL fetching and portability outside NetBSD.

### 项目历史

The NetBSD manual page shows both lineages: Berkeley Regents copyrights from the 1980s and early 1990s, and NetBSD Foundation work beginning in 1996 contributed by Luke Mewburn. The NetBSD source version header identifies the product as `NetBSD-ftp` and records a 20260208 version in current source.

The portable distribution history is documented in NetBSD's tnftp archive. The directory message states that tnftp is a port of the enhanced NetBSD ftp client to other systems and that `lukemftp` was renamed to `tnftp`. Archived tarballs show `lukemftp` releases beginning in 1999, a `tnftp-2.0-beta1` tarball in 2003, date-stamped tnftp tarballs through the 2000s and 2010s, and a 2026 tarball.

### 采用历史

tnftp's adoption comes from being a maintained, portable BSD ftp client at a time when base-system ftp clients were disappearing, diverging, or lacking HTTP/URL conveniences. The supplied package facts show it in Homebrew, Fedora/DNF, MacPorts, Arch, openSUSE/Zypper, and as `ftp` in Debian and Ubuntu.

The man page's auto-fetching support is a key adoption detail: it can fetch FTP, HTTP, HTTPS, and file URLs directly into the current directory, which made it useful in scripts and package recipes that wanted a familiar `ftp` command with URL support.

### 使用方式

Users invoke `ftp` or `tnftp` interactively to transfer files to and from FTP servers, or non-interactively to fetch URLs. The manual page documents `.netrc` support through `-N`, anonymous mode, passive/active behavior, IPv4/IPv6 selection, retries, output naming, custom HTTP headers, and URL auto-fetching.

In package-manager culture, tnftp often appears as a pragmatic replacement for a missing or weaker system ftp client. It gives bootstrap scripts and port recipes a small BSD-licensed network fetcher with predictable behavior across Unix-like systems.

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

For package nerds, tnftp matters because it is both historical userland and packaging glue. It preserves the Berkeley/NetBSD ftp interface while making that interface portable and useful for scripted downloads, including HTTP(S) URLs.

It also illustrates why package managers sometimes carry tools that look obsolete by protocol name: even after FTP's decline, a compact, scriptable `ftp` command remained useful for compatibility, bootstrap, and reproducible build environments.

### 时间线

- 1985-1994: Berkeley FTP client ancestry appears in the NetBSD manual page copyrights and SCCS marker.
- 1996: NetBSD Foundation ftp work begins in the manual page copyright range.
- 1999: `lukemftp-1.0.tar.gz` appears in the NetBSD tnftp archive.
- 2003: `tnftp-2.0-beta1.tar.gz` appears after the rename from lukemftp to tnftp.
- 2023: NetBSD archive publishes date-stamped tnftp tarballs for April and May 2023.
- 2026: NetBSD current source identifies `FTP_VERSION` as `20260208`, and the archive contains `tnftp-20260211.tar.gz`.

### Related projects

- Related to NetBSD's base-system `ftp` client in `usr.bin/ftp`.
- Closely paired in the portable archive with tnftpd, the corresponding NetBSD FTP server port.

### 来源

- <https://cdn.netbsd.org/pub/NetBSD/misc/tnftp/>
- <https://cdn.netbsd.org/pub/NetBSD/misc/tnftp/.message>
- <https://cdn.netbsd.org/pub/NetBSD/misc/tnftp/archive/>
- <https://github.com/NetBSD/src/tree/trunk/usr.bin/ftp>
- <https://man.netbsd.org/ftp.1>
- <https://raw.githubusercontent.com/NetBSD/src/trunk/usr.bin/ftp/version.h>
- input source_facts.package-manager


## 安全说明

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.


## Credential files

- Unix: ~/.netrc
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tnftp
- **Aliases:** lukemftp
- **Version Scheme:** 0
- **Revision:** 0
- **Conflicts With:** inetutils
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - ftp - 20230507-2: normalized package name match | Debian stable package indexes: ftp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | dummy transitional package for tnftp | https://en.wikipedia.org/wiki/Tnftp
- Debian apt - tnftp - 20230507-2+b1: normalized package name match | Debian stable package indexes: tnftp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | enhanced ftp client | https://en.wikipedia.org/wiki/Tnftp
- Ubuntu apt - ftp - 20230507-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: ftp from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | dummy transitional package for tnftp | https://en.wikipedia.org/wiki/Tnftp
- Ubuntu apt - tnftp - 20230507-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: tnftp from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | enhanced ftp client | https://en.wikipedia.org/wiki/Tnftp
- dnf - tnftp - 20260211-3.fc45: normalized package name match | Fedora Rawhide package metadata: tnftp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | FTP (File Transfer Protocol) client from NetBSD | http://www.NetBSD.org/
- pacman - tnftp - 20260211-1: normalized package name match | Arch Linux sync databases: tnftp from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | NetBSD FTP client with several advanced features | https://ftp.netbsd.org/pub/NetBSD/misc/tnftp/
- zypper - tnftp - 20260211-2.4: normalized package name match | openSUSE Tumbleweed package metadata: tnftp from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Enhanced FTP Client | https://ftp.netbsd.org/pub/NetBSD/misc/tnftp/
- MacPorts - tnftp: normalized package name match | MacPorts ports tree: net/tnftp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [tnftpd](https://pkg.so/zh-hans/brew/tnftpd/) - Shares the same upstream homepage.
- [ncftp](https://pkg.so/zh-hans/brew/ncftp/) - Shares pkgdb curated category or tags: cli, file-transfer, ftp, network-client, networking.
- [lftp](https://pkg.so/zh-hans/brew/lftp/) - Shares pkgdb curated category or tags: cli, file-transfer, ftp, networking.
- [duck](https://pkg.so/zh-hans/brew/duck/) - Shares pkgdb curated category or tags: cli, file-transfer, ftp, networking.
- [proftpd](https://pkg.so/zh-hans/brew/proftpd/) - Shares pkgdb curated category or tags: cli, file-transfer, ftp, networking.
- [yafc](https://pkg.so/zh-hans/brew/yafc/) - Shares pkgdb curated category or tags: cli, file-transfer, ftp, networking.
- [wget](https://pkg.so/zh-hans/brew/wget/) - Shares pkgdb curated category or tags: cli, ftp, networking.
- [aria2](https://pkg.so/zh-hans/brew/aria2/) - Shares pkgdb curated category or tags: cli, ftp, networking.

## Combined YAML source

View the package source record on GitHub. [combined/tnftp.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tnftp.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
