Shieldlist

Release channels

The APT repository has two channels. A machine follows one of them, named in its source line.

What each channel carries

  • stable: the releases, and nothing else. This is the channel for production. Shieldlist is still in beta: the latest release is a beta version — read what to expect in beta before you rely on it.
  • dev: our development builds as soon as they are built, plus every release. It is never behind stable, and often ahead. A development build can break: use it to try what is coming, on a machine you can afford to fix.

Which one to choose

stable on every machine that matters. dev on one or two machines where you want the new features early and can live with a fault.

An agent and its controller work together when their first two numbers match (0.1.x with 0.1.x), whatever channel each one follows.

Moving from one to the other

The channel is the word after the address in the source line. Write the other word and upgrade:

echo "deb [signed-by=/usr/share/keyrings/shieldlist.gpg] https://repo.lrob.net/apt/shieldlist dev main" > /etc/apt/sources.list.d/shieldlist.list
apt update && apt upgrade

From stable to dev, that upgrade installs the newest development build.

From dev back to stable (the same line with stable), apt never goes down by itself: the machine keeps its build until a release is newer, and then it is on stable again. To go back at once, install the release by its version — apt policy shieldlist-agent lists them:

apt install --allow-downgrades shieldlist-agent=<version>

On a controller, keep a copy of the state directory before going down: a store a newer build has written may not be readable by an older one.

Upgrading by itself

unattended-upgrades can follow the channel. In /etc/apt/apt.conf.d/51shieldlist:

Unattended-Upgrade::Origins-Pattern { "o=Shieldlist,a=stable"; };

On stable, only releases arrive that way; on dev (a=dev), every build. The package restarts the service on upgrade; the bans live in the kernel and stay in place meanwhile.