How To Install Gocryptfs On Debian, Ubuntu, Arch, Kali, Raspbian And MacOS?

How To Install Gocryptfs On Debian, Ubuntu, Arch, Kali, Raspbian And MacOS?

gocryptfs

Encrypted overlay filesystem written in Go.

Maintainer: Debian Go Packaging Team



Section: devel

Install gocryptfs

  • Debian apt-get install gocryptfs Click to copy
  • Ubuntu apt-get install gocryptfs Click to copy
  • Arch Linux pacman -S gocryptfs Click to copy
  • Kali Linux apt-get install gocryptfs Click to copy
  • Raspbian apt-get install gocryptfs Click to copy
  • macOS brew install gocryptfs Click to copy

Encrypted overlay filesystem written in Go.

How to use gocryptfs?

Below are few example commands for gocryptfs that you can use in the terminal.

Initialize an encrypted filesystem:
gocryptfs -init path/to/cipher_dirClick to copy
Mount an encrypted filesystem:
gocryptfs path/to/cipher_dir path/to/mount_pointClick to copy
Mount with the explicit master key instead of password:
gocryptfs --masterkey path/to/cipher_dir path/to/mount_pointClick to copy
Change the password:
gocryptfs --passwd path/to/cipher_dirClick to copy
Make an encrypted snapshot of a plain directory:
gocryptfs --reverse path/to/plain_dir path/to/cipher_dirClick to copy
To install the latest version of gocryptfs in your favorite operating system just copy the gocryptfs installation command from above and paste it into terminal. It will download and install the latest version of gocryptfs 2026 package in your OS.