Skip to content

Installation

MateusBMP edited this page Nov 16, 2026 · 3 revisions

Installation

There are no distribution packages yet. Packages for Arch/Manjaro (PKGBUILD), Debian/Ubuntu (.deb) and a generic make install with an install manifest are the next milestone (M8, see Roadmap). Until then the only installer is a test script meant for disposable VMs.

Supported systems

x86_64 systems with systemd, iptables 1.8.9 or later (nft or legacy backend) and Python 3.11 or later.

Distribution Python Tested in CI
Debian 12 (bookworm) 3.11 unit + firewall suites in containers, system suite in a qemu VM
Debian 13 (trixie) 3.13 same
Ubuntu 24.04 LTS 3.12 containers, system suite natively on a GitHub runner
Ubuntu 26.04 LTS distro same
Fedora 44 3.14 containers, qemu VM
Arch Linux rolling containers, qemu VM

Derivatives (Manjaro, Linux Mint, Pop!_OS, ...) are expected to work but are not tested in CI. Ubuntu 22.04 is not supported: its polkit 0.105 has no JavaScript rules.

Dependencies

Debian / Ubuntu Fedora Arch
Daemon and CLI python3-dnspython python3-httpx python3-h2 python3-jeepney iptables python3-dns python3-httpx python3-h2 python3-jeepney iptables-nft python-dnspython python-httpx python-h2 python-jeepney iptables
GUI python3-pyqt6 python3-pyqt6 python-pyqt6
Building translations qt6-l10n-tools qt6-linguist qt6-tools

Installing from source (test machines only)

tests/vm/install.sh installs the tree into the real system paths the way a package would, and records every file in /var/lib/blockads-linux-install.manifest so that it can be removed exactly.

python3 tools/i18n/update.py --compile    # build the GUI translations (.qm)
sudo tests/vm/install.sh install          # copies files; enables and starts nothing
sudo systemctl enable blockadsd.socket blockadsd.service
sudo systemctl enable --now blockads-update.timer blockads-update.path
sudo systemctl start blockadsd.socket blockadsd.service   # the service start applies the firewall rules
blockadsctl status

On SELinux systems (Fedora) the launchers and the helper must be labeled bin_t; the script does this with chcon.

To remove it (stops the units, reverts the firewall, deletes the recorded files; the state in /var/lib/blockads-linux is kept):

sudo tests/vm/install.sh uninstall

Installed layout

Path Contents
/usr/lib/blockads-linux/ private Python code, launchers, blockads-fw, blockads-fw-emergency.sh
/usr/bin/blockadsctl, /usr/bin/blockads CLI and GUI
/etc/blockads-linux/firewall.conf firewall options (root-owned)
/var/lib/blockads-linux/ settings, compiled lists, query log and statistics
/run/blockads-fw/ helper state and lock (gone after a reboot)
systemd units blockadsd.socket, blockadsd-ipv6.socket, blockadsd-bridge.socket (opt-in), blockadsd.service, blockads-update.{service,timer,path}, blockads-failsafe.service

Clone this wiki locally