This document provides comprehensive installation instructions for ZeroVault across all supported platforms.
- Automatic Installation
- Platform-Specific Installation
- Installation Verification
- Troubleshooting
- Building from Source
- Uninstallation
ZeroVault features a self-installation mechanism that automatically sets everything up the first time you run it.
- Download the executable for your platform
- Run any ZeroVault command
- The program automatically:
- Copies itself to
~/.zerovault/bin/(or%USERPROFILE%\.zerovault\binon Windows) - Adds this location to your PATH
- Continues executing your original command
- Copies itself to
You'll see a brief message during this process:
✔ ZeroVault installed to /Users/username/.zerovault/bin
⟳ Relaunching …After this one-time setup, you can run zerovault from anywhere without specifying the path.
-
Download the executable:
curl.exe -L -o zerovault.exe https://github.com/ParleSec/zerovault/releases/latest/download/zerovault-windows-amd64.exe
Or download directly from your browser: zerovault-windows-amd64.exe
-
Run the executable (it will self-install):
.\zerovault.exe --help
-
Restart your Command Prompt or PowerShell to recognize PATH changes
-
Download the executable as above
-
Create a directory for ZeroVault:
mkdir "%USERPROFILE%\.zerovault\bin" -
Move the executable:
move zerovault.exe "%USERPROFILE%\.zerovault\bin" -
Add to PATH (in PowerShell):
$env:Path += ";$env:USERPROFILE\.zerovault\bin" [Environment]::SetEnvironmentVariable("Path", $env:Path, "User")
-
Download the appropriate executable:
Maximum compatibility (static binary):
curl -L -o zerovault https://github.com/ParleSec/zerovault/releases/latest/download/zerovault-linux-musl-amd64
-
Make it executable:
chmod +x zerovault
-
Run the executable (it will self-install):
./zerovault --help
-
Open a new terminal window to recognize PATH changes
-
Download and make executable as above
-
Create the destination directory:
mkdir -p ~/.zerovault/bin -
Move the executable:
mv zerovault ~/.zerovault/bin/ -
Add to your PATH by adding this line to your
~/.bashrcor~/.profile:export PATH="$HOME/.zerovault/bin:$PATH"
-
Reload your shell configuration:
source ~/.bashrc # or ~/.profile
Current MacOS support is limited due to me not having a Mac machine. ZeroVault will run on MacOS systems, but will require manually building from source.
Verify that ZeroVault is correctly installed:
zerovault --versionYou should see output displaying the version number, like:
zerovault 1.0.0You can also run a self-test:
zerovault testThis will perform encryption/decryption tests to ensure everything is working correctly.
If you get a "command not found" error after installation:
Windows:
-
Restart your Command Prompt/PowerShell
-
Verify the PATH includes ZeroVault:
$env:Path -
If needed, manually add to PATH:
[Environment]::SetEnvironmentVariable("Path", "$env:Path;$env:USERPROFILE\.zerovault\bin", "User")
Linux:
-
Restart your terminal session
-
Verify the PATH includes ZeroVault:
echo $PATH
-
If needed, manually add to PATH in your shell configuration file:
echo 'export PATH="$HOME/.zerovault/bin:$PATH"' >> ~/.bashrc source ~/.bashrc
Linux:
-
If you get a permission error:
chmod +x ~/.zerovault/bin/zerovault
If automatic installation fails:
- Try the manual installation steps for your platform
- Check file permissions in the destination directory
- Ensure you have write access to the destination directory
- For package manager installations, ensure you have admin privileges
- Rust 1.70 or higher
- Cargo build tools
- Git
-
Clone the repository:
git clone https://github.com/ParleSec/zerovault cd zerovault -
Build and install with Cargo:
cargo install --path . -
Verify installation:
zerovault --version
For optimized performance:
cargo install --path . --releaseFor cross-compilation to other platforms:
# Install target
rustup target add x86_64-pc-windows-msvc
# Build
cargo build --release --target x86_64-pc-windows-msvc-
Missing dependencies: Install the build essentials for your platform
- Debian/Ubuntu:
sudo apt install build-essential - CentOS/RHEL:
sudo yum groupinstall "Development Tools" - Windows: Install Visual Studio Build Tools
- Debian/Ubuntu:
-
OpenSSL issues: Install the OpenSSL development package
- Debian/Ubuntu:
sudo apt install libssl-dev pkg-config - CentOS/RHEL:
sudo yum install openssl-devel
- Debian/Ubuntu:
Windows:
-
Delete the directory:
rmdir /s /q "%USERPROFILE%\.zerovault"
-
Remove from PATH (PowerShell):
$path = [Environment]::GetEnvironmentVariable("Path", "User") $path = $path -replace "$env:USERPROFILE\\\.zerovault\\bin;", "" [Environment]::SetEnvironmentVariable("Path", $path, "User")
Linux:
-
Delete the directory:
rm -rf ~/.zerovault -
Remove the PATH entry from your shell configuration file (
~/.bashrc,~/.zshrc, or~/.profile)
Homebrew:
brew uninstall zerovaultDebian/Ubuntu:
sudo dpkg -r zerovaultCargo Installation:
cargo uninstall zerovault