This is the Homebrew formula for installing Torrent VPN Stack on macOS and Linux.
brew tap ddmoney420/torrent-vpn-stack
brew install torrent-vpn-stackbrew install ddmoney420/torrent-vpn-stack/torrent-vpn-stackbrew install --HEAD ddmoney420/torrent-vpn-stack/torrent-vpn-stackAfter installation:
# Navigate to installation directory
cd $(brew --prefix)/opt/torrent-vpn-stack
# Copy example config
cp .env.example .env
# Run interactive setup
torrent-vpn-setup
# Start the stack
docker compose up -d
# Verify VPN connection
torrent-vpn-verifyAfter installation, these commands are available system-wide:
torrent-vpn-setup- Interactive configuration wizardtorrent-vpn-verify- Verify VPN connectiontorrent-vpn-check-leaks- Check for IP/DNS leakstorrent-vpn-backup- Backup Docker volumestorrent-vpn-restore- Restore from backuptorrent-vpn-benchmark- Benchmark VPN performancetorrent-vpn-setup-automation- Setup automated backups (macOS: launchd, Linux: systemd/cron)torrent-vpn-remove-automation- Remove automated backups
# Update Homebrew
brew update
# Upgrade torrent-vpn-stack
brew upgrade torrent-vpn-stack# Stop and remove containers first
cd $(brew --prefix)/opt/torrent-vpn-stack
docker compose down
# Uninstall via Homebrew
brew uninstall torrent-vpn-stack
# Optionally remove Docker volumes (WARNING: deletes data)
docker volume rm torrent-vpn-stack_gluetun-config torrent-vpn-stack_qbittorrent-configTo publish this formula, create a new repository named homebrew-torrent-vpn-stack:
- Create repository:
https://github.com/ddmoney420/homebrew-torrent-vpn-stack - Copy
torrent-vpn-stack.rbto the root of that repository - Users can then install with:
brew install ddmoney420/torrent-vpn-stack/torrent-vpn-stack
Before publishing:
# Audit the formula
brew audit --strict torrent-vpn-stack.rb
# Test installation locally
brew install --build-from-source ./torrent-vpn-stack.rb
# Run formula tests
brew test torrent-vpn-stackWhen releasing a new version:
- Create a new Git tag and release on GitHub
- Calculate SHA256 of the tarball:
curl -sL https://github.com/ddmoney420/torrent-vpn-stack/archive/refs/tags/v1.0.0.tar.gz | shasum -a 256 - Update the
urlandsha256in the formula - Commit and push to the tap repository
For issues with the Homebrew formula:
- Formula issues: https://github.com/ddmoney420/homebrew-torrent-vpn-stack/issues
- Project issues: https://github.com/ddmoney420/torrent-vpn-stack/issues