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

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

## 安装

```sh
sudo av install brew:gocryptfs
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gocryptfs
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gocryptfs
```

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

### Linux

- apk (92%):

```sh
sudo apk add gocryptfs
```

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

- Debian apt (92%):

```sh
sudo apt install gocryptfs
```

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

- dnf (92%):

```sh
sudo dnf install gocryptfs
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#gocryptfs
```

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

- pacman (92%):

```sh
sudo pacman -S gocryptfs
```

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

- zypper (92%):

```sh
sudo zypper install gocryptfs
```

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

## 软件包事实

- **软件包键:** brew:gocryptfs
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gocryptfs>
- **版本:** 2.6.1
- **来源摘要:** Encrypted overlay filesystem written in Go
- **主页:** <https://nuetzlich.net/gocryptfs/>
- **仓库:** <https://github.com/rfjakob/gocryptfs>
- **上游文档:** <https://nuetzlich.net/gocryptfs/>
- **许可证:** MIT
- **源码归档:** <https://github.com/rfjakob/gocryptfs/releases/download/v2.6.1/gocryptfs_v2.6.1_src-deps.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gocryptfs (cli)
- gocryptfs-xray (cli)
- gocryptfs (别名)
- gocryptfs-xray (别名)

## 依赖

- libfuse
- openssl@4

## 构建依赖

- go
- pkgconf

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.6.1
- 本地数据: OK
- 上游仓库: https://github.com/rfjakob/gocryptfs
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

gocryptfs is an encrypted FUSE overlay filesystem written in Go. It was designed as an EncFS-inspired tool that fixes security weaknesses while preserving the convenient model of mounting an encrypted directory as a plaintext view.

### 项目历史

The public GitHub repository was created in September 2015. The README says gocryptfs is built on go-fuse, was inspired by EncFS, and strives to fix EncFS security issues while providing good performance.

The project reached version 1.0 on July 17, 2016 after stress and correctness testing with fsstress, extractloop, and xfstests. The README also records a March 3, 2017 security audit, signed releases from v0.4 onward, Linux as the native platform, beta-quality macOS support, and a stable CLI ABI for scripts and applications.

### 采用历史

gocryptfs spread through the channels expected for a filesystem utility: upstream release binaries, Linux distribution packages, MacPorts, Homebrew, and package-manager metadata for Alpine, Debian, Fedora, Nix, Arch, Ubuntu, and openSUSE in the batch input.

Its adoption was helped by a clear operational niche: users wanted per-directory encryption that worked with sync tools and ordinary filesystems without placing trust in a full-disk-encryption layer or a cloud provider.

### 使用方式

The core workflow is to run `gocryptfs -init CIPHERDIR` and then mount `CIPHERDIR` at a plaintext mount point. The manpage also documents password changes, filesystem checks, info display, reverse mode, deterministic names, speed tests, and other operational flags.

gocryptfs stores encrypted data in CIPHERDIR and presents a plaintext view at MOUNTPOINT. Its `gocryptfs.conf` file is part of the encrypted directory metadata, while the password or master key remains the user's responsibility.

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

Package nerds care about gocryptfs because filesystem tools are hard to package well: they touch FUSE, kernel interfaces, release signatures, platform caveats, and data safety. gocryptfs documents those edges unusually directly, including signed releases, security design, stable CLI ABI, benchmark expectations, and config-file recovery advice.

It is also a strong example of Go in systems-tool packaging: a single CLI with static-binary potential, distribution packages, and tight interaction with low-level OS facilities.

### 时间线

- 2015-09: GitHub repository created.
- 2016-07: Version 1.0 reached and declared ready for general consumption.
- 2017-03: Security audit completed.
- 2021-06: v2.0 released in the release history.
- 2025-08: v2.6.1 released.

### Related projects

- EncFS is the design predecessor named by gocryptfs.
- go-fuse is the FUSE library gocryptfs builds on.
- cppcryptfs is the independent Windows reimplementation named in the README.
- SiriKali is a graphical frontend that supports gocryptfs.

### 来源

- <https://api.github.com/repos/rfjakob/gocryptfs>
- <https://api.github.com/repos/rfjakob/gocryptfs/releases>
- <https://github.com/rfjakob/gocryptfs>
- <https://github.com/rfjakob/gocryptfs/blob/master/Documentation/MANPAGE.md>
- <https://github.com/rfjakob/gocryptfs/releases>
- <https://nuetzlich.net/gocryptfs>


## 安全说明

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: CIPHERDIR/gocryptfs.conf
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gocryptfs
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** linux
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - gocryptfs - 2.5.1-2+b1: normalized package name match | Debian stable package indexes: gocryptfs from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Encrypted overlay filesystem written in Go | https://github.com/rfjakob/gocryptfs
- Nix - gocryptfs: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/gocryptfs/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gocryptfs - 2.4.0-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: gocryptfs from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Encrypted overlay filesystem written in Go | https://github.com/rfjakob/gocryptfs
- apk - gocryptfs - 2.6.1-r7: normalized package name match | Alpine Linux edge package indexes: gocryptfs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Encrypted overlay filesystem written in Go | https://github.com/rfjakob/gocryptfs
- apk - gocryptfs-doc - 2.6.1-r7: normalized package name match | Alpine Linux edge package indexes: gocryptfs-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Encrypted overlay filesystem written in Go (documentation) | https://github.com/rfjakob/gocryptfs
- dnf - gocryptfs - 2.6.1-7.fc45: normalized package name match | Fedora Rawhide package metadata: gocryptfs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Encrypted overlay filesystem written in Go | https://github.com/rfjakob/gocryptfs
- pacman - gocryptfs - 2.6.1-1: normalized package name match | Arch Linux sync databases: gocryptfs from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Encrypted overlay filesystem written in Go. | https://github.com/rfjakob/gocryptfs
- zypper - gocryptfs - 2.6.1-1.8: normalized package name match | openSUSE Tumbleweed package metadata: gocryptfs from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Encrypted overlay filesystem written in Go | https://nuetzlich.net/gocryptfs/
- zypper - gocryptfs-doc - 2.6.1-1.8: normalized package name match | openSUSE Tumbleweed package metadata: gocryptfs-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Documentation for gocryptfs | https://nuetzlich.net/gocryptfs/
- MacPorts - gocryptfs: normalized package name match | MacPorts ports tree: fuse/gocryptfs/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.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openssl@4](https://pkg.so/zh-hans/brew/openssl-4/) - Runtime dependency declared by Homebrew.
- [libfuse](https://pkg.so/zh-hans/brew/libfuse/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [dislocker](https://pkg.so/zh-hans/brew/dislocker/) - Shares pkgdb curated category or tags: cli, encryption, filesystem, fuse, security.
- [cryfs](https://pkg.so/zh-hans/brew/cryfs/) - Shares pkgdb curated category or tags: cli, encryption, filesystem, fuse, security.
- [encfs](https://pkg.so/zh-hans/brew/encfs/) - Shares pkgdb curated category or tags: cli, encryption, filesystem, fuse, security.
- [gnupg](https://pkg.so/zh-hans/brew/gnupg/) - Shares pkgdb curated category or tags: cli, encryption, security.
- [nettle](https://pkg.so/zh-hans/brew/nettle/) - Shares pkgdb curated category or tags: cli, encryption, security.
- [sops](https://pkg.so/zh-hans/brew/sops/) - Shares pkgdb curated category or tags: cli, encryption, security.
- [git-crypt](https://pkg.so/zh-hans/brew/git-crypt/) - Shares pkgdb curated category or tags: cli, encryption, security.
- [age](https://pkg.so/zh-hans/brew/age/) - Shares pkgdb curated category or tags: cli, encryption, security.

## Combined YAML source

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