A universal installer script for the Zapret tool that works across multiple platforms:
- Linux (various distributions)
- macOS
- OpenWrt
- Windows
Run the following command in your terminal:
sh -c "$(curl -sSL https://raw.githubusercontent.com/gorlev/zapret-easy-installer/main/install_zapret.sh)"Note for OpenWrt users: The command will work directly as shown above!
Note for Linux/macOS users: The script will automatically use sudo if needed and prompt for your password. After entering your password, installation will continue automatically - no need to paste the command again.
- Download the install_zapret.bat file
- Right-click the file and select "Run as administrator"
- Cross-platform support: Works on most major operating systems
- Automatic curl installation: Checks if curl is available and installs it if needed
- Dynamic package selection: Automatically selects the correct package for your system
- Integrity verification: Validates downloaded files using SHA256 checksums
- Clean installation: Downloads, extracts, and installs in the appropriate directories
- Cleanup option: Optionally remove downloaded files after installation
The installer:
- Detects your operating system (Linux, macOS, OpenWrt, or Windows)
- Installs curl if it's not available
- Downloads the latest version of Zapret from the official GitHub repository
- Selects the appropriate package for your system:
- OpenWrt:
zapret-vX.X-openwrt-embedded.tar.gz - Linux/macOS:
zapret-vX.X.tar.gz - Windows:
zapret-vX.X.zip
- OpenWrt:
- Verifies the integrity of the downloaded files using SHA256 checksums
- Extracts the files to the appropriate location:
- Windows/macOS:
~/Downloads/zapret/ - Linux/OpenWrt:
/tmp/zapret/
- Windows/macOS:
- Runs the installation scripts included in the package
- Cleans up downloaded files if requested
- Linux/OpenWrt: Root access, sh shell
- macOS: Admin privileges, Terminal
- Windows: Administrator privileges, PowerShell 5.1+
If you encounter a checksum verification error, it could be due to:
- Incomplete downloads
- Network issues
- Repository changes since the checksum file was created
Try running the installer again. If the problem persists, you can manually download and install the package from the official Zapret repository.
Make sure you're running the installer with administrator privileges:
- Linux/macOS/OpenWrt: Use
sudobefore the command - Windows: Right-click the BAT file and select "Run as administrator"
The installer will attempt to install curl if it's not found. If this fails:
- Install curl manually using your system's package manager
- Run the installer again
This installer is provided under the MIT License.
- Zapret by bol-van
This is an unofficial installer. For issues with Zapret itself, please refer to the official Zapret repository.