A fully automated Bash script that fetches the latest Zen Browser release, downloads the Linux tarball, and packages it into a clean, installable .deb file for Debian and Ubuntu systems.
The resulting package provides:
- A desktop launcher
- Proper installation paths
- A
/usr/bin/zen-browsercommand - Automatic updates via systemd
- Clean removal through your package manager
No manual version typing. No tarball hunting.
- Automatically detects the latest Zen Browser version
- Downloads the correct
linux-x86_64.tar.xztarball - Builds a Debian‑compliant
.debpackage - Installs a lightweight auto‑update system
- Creates a daily systemd timer for background updates
- Places the final
.debin~/Downloads - Clean, color‑coded terminal output with spinner
- Runs in any directory without leaving clutter
Install required tools:
sudo apt install curl dpkg-dev coreutils findutils
Used for:
curl— fetching release metadata and tarballsdpkg-deb— building the.debpackagefind— locating the icon- Standard utilities (
mv,mkdir,chmod, etc.)
Run the builder directly:
curl -fsSL https://raw.githubusercontent.com/MurderFromMars/Zen-Browser-Deb-Builder/main/zen-build.sh | bash
This downloads and executes the script in memory.
-
Fetches the latest Zen Browser release metadata
-
Extracts the version number
-
Downloads the correct Linux tarball
-
Builds a Debian package structure:
build_zen-browser_<version>_amd64/ ├── DEBIAN/ │ └── control ├── opt/ │ └── zen-browser/ └── usr/ ├── bin/zen-browser └── share/applications/zen-browser.desktop -
Fixes ownership metadata using
--root-owner-group -
Produces a
.debfile -
Moves the final package into:
~/Downloads/zen-browser_<version>_amd64.deb
The generated .deb installs:
/usr/bin/zen-browser-updatezen-browser-update.servicezen-browser-update.timer
Zen Browser will automatically check for updates daily.
Run the updater manually:
sudo zen-browser-update
Your profile, settings, extensions, and keybinds remain untouched.
The final .deb is always placed in:
~/Downloads
Install it with:
sudo dpkg -i ~/Downloads/zen-browser_<version>_amd64.deb
Zen Browser ships only as a tarball.
This script converts it into a proper Debian package so you can:
- Install it cleanly
- Update it cleanly
- Remove it cleanly
- Launch it from your application menu
- Run it from the terminal
Distributed under the MIT license.