# 使用 Homebrew, apk, apt, MacPorts, Nix, pacman, zypper 安装 btfs

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

## 安装

```sh
sudo av install brew:btfs
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install btfs
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install btfs
```

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

### Linux

- apk (92%):

```sh
sudo apk add btfs
```

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

- Debian apt (92%):

```sh
sudo apt install btfs
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#btfs
```

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

- pacman (92%):

```sh
sudo pacman -S btfs
```

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

- zypper (92%):

```sh
sudo zypper install btfs
```

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

## 软件包事实

- **软件包键:** brew:btfs
- **软件包管理器:** Homebrew
- **版本:** 3.1
- **来源摘要:** BitTorrent filesystem based on FUSE
- **主页:** <https://github.com/johang/btfs>
- **仓库:** <https://github.com/johang/btfs>
- **最后更新:** 2026-07-11T11:00:47Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- btfs (别名)
- btfsstat (别名)
- btplay (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

BTFS is a FUSE filesystem that mounts a .torrent file or magnet link as a read-only directory. Files are downloaded on demand as applications read them, so ordinary tools like ls, cat, cp, VLC, and mplayer can operate on torrent contents through the filesystem.

### 项目历史

Johan Gunnarsson's btfs repository starts in July 2015 and tagged v2.0 the next day. The project combines libtorrent-rasterbar with FUSE to expose BitTorrent content as a normal file tree.

The project continued as a small but portable Unix tool and reached v3.0 in May 2025 with a port to libfuse 3.x, followed by v3.1.

### 采用历史

BTFS is packaged unusually widely for a niche FUSE utility. The official README includes install commands for Debian/Ubuntu, Arch Linux, Gentoo, Fedora, Fedora OSTree, openSUSE, and macOS via Homebrew.

The input also records packaging across Homebrew, MacPorts, Nix, Debian, Ubuntu, Alpine, Arch, and zypper ecosystems, showing that the tool became a standard package-manager object despite its specialized torrent-filesystem use case.

### 使用方式

A typical session creates a mount directory, mounts a torrent or magnet link with btfs, changes into the mounted directory, and opens media or copies files normally. The mount is read-only and content is fetched on demand as the kernel asks the FUSE filesystem for file data.

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

BTFS is package-nerd candy because it turns BitTorrent into a filesystem abstraction: a small CLI package that bridges P2P distribution, FUSE, libtorrent, media playback, and ordinary Unix file tools.

### 时间线

- 2015: Initial commit and v2.0 tag.
- 2025: v3.0 ports btfs to libfuse 3.x.
- 2025: v3.1 follows the libfuse 3.x port.

### Related projects

- BTFS depends on FUSE or macFUSE to expose torrents as mounted directories.
- BTFS uses libtorrent-rasterbar for BitTorrent protocol handling.
- The README names VLC and mplayer as applications that can consume mounted torrent files without changes.

### 来源

- Local git history from https://github.com/johang/btfs shows initial commit and v2.0 in 2015, then v3.0 and v3.1 in 2025.
- Official README describes mounting .torrent files or magnet links as read-only directories with on-demand downloads: https://raw.githubusercontent.com/johang/btfs/master/README.md
- Official README documents Debian/Ubuntu, Arch, Gentoo, Fedora, openSUSE, macOS/Homebrew, FUSE, libtorrent-rasterbar, and libcurl: https://raw.githubusercontent.com/johang/btfs/master/README.md
- Package-manager adoption from source_facts.package-manager.


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - btfs - 2.24-1+b3: normalized package name match | Debian stable package indexes: btfs from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | access torrent files as a filesystem | https://github.com/johang/btfs
- Nix - btfs: normalized package name match | nixpkgs package indexes: pkgs/by-name/bt/btfs/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - btfs - 2.24-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: btfs from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | access torrent files as a filesystem | https://github.com/johang/btfs
- apk - btfs - 3.1-r1: normalized package name match | Alpine Linux edge package indexes: btfs from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bittorrent filesystem based on FUSE | https://github.com/johang/btfs
- apk - btfs-doc - 3.1-r1: normalized package name match | Alpine Linux edge package indexes: btfs-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bittorrent filesystem based on FUSE (documentation) | https://github.com/johang/btfs
- pacman - btfs - 3.1-3: normalized package name match | Arch Linux sync databases: btfs from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A bittorrent filesystem based on FUSE | https://github.com/johang/btfs
- zypper - btfs - 3.1-3.6: normalized package name match | openSUSE Tumbleweed package metadata: btfs from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A BitTorrent file system based on FUSE | https://github.com/johang/btfs
- MacPorts - btfs: normalized package name match | MacPorts ports tree: fuse/btfs/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/btfs.yml](https://github.com/mxcl/pkgdb/blob/main/combined/btfs.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
