Skip to content

Updating

A portable folder, a USB stick and a bootable stick all update themselves to the newest release, over Tor, and keep data/: your vault, the offline cache, a node's data and your settings. Nothing needs to be copied off first.

The client tells you when there is something newer: the terminal client says Unseenet X is ready, the graphical client shows it in the status bar, with an Update button on a stick or portable folder. It learns this from the project channel unseenet.releases, inside the network, so it does not need GitHub to know.

Bootable (USB, SSD etc.) · Terminal

Boot the stick and choose Update in the menu, then one of:

  • Newest release - what most people want;
  • Newest development build - the newest code on main, which may have bugs a release would not;
  • From unseenet-...-update.zip on the stick - for a computer without a network (see Without a network).

It connects (cable or Wi-Fi first), starts Tor, shows the version it found and asks before it changes anything. When it is done the computer restarts into the new version.

You can also update a bootable stick from a computer that is running: start Unseenet from the stick as a portable and update as below. A bootable stick always gets the bootable update, which includes the portable programs too.

Portable (Linux, macOS, Windows) · Terminal

In the client, open the command palette (Ctrl+P) and choose Update Unseenet. The client saves your work, the update runs in the terminal, and the client closes when it is done; start it again to use the new version.

The same from a terminal, in the Unseenet folder:

./linux-x86_64/unseenet update            # Linux
./macos-aarch64/unseenet update           # macOS (Apple silicon; macos-x86_64 on Intel)
windows-x86_64\unseenet.exe update        # Windows
Option Does
--check Only says whether there is something newer
--channel dev The newest development build instead of the newest release
--zip FILE Updates from a zip you downloaded yourself
--yes Does not ask

A folder with every platform (the USB zip) gets the USB zip again; a folder with one platform gets that platform's zip, so it stays small. On Windows a program that is running cannot be replaced, so it is moved aside and deleted the next time Unseenet starts.

Portable (Linux, macOS, Windows) · Graphical

When the status bar says Unseenet X is ready, press Update there. The client saves your work, updates the folder over Tor and asks you to start it again. From a terminal, in the Unseenet folder:

./gui-linux-x86_64/unseenet-gui update --product gui     # Linux

The terminal and the graphical client can be in the same folder and share data/; each is updated on its own (--product terminal or --product gui), and neither removes the other's files. A folder with only the graphical client is updated as one without --product. This works from the graphical client built with Unseenet 0.8 on; older folders are updated by unpacking the new zip over them.

Without a network

Download, from the same release on GitHub:

  • the zip for your installation - unseenet-<version>-x86_64-update.zip for a bootable stick, unseenet-<version>-usb.zip for a USB folder, or the platform's zip;
  • SHA256SUMS.txt and SHA256SUMS.txt.sig.

Put the three files in one folder (for a bootable stick: in the stick's root) and choose the zip in the boot menu, or run unseenet update --zip <the zip>. Where Tor is blocked, this is also the way to update: the updater uses Tor without bridges.

When GitHub is blocked

The updater looks for the newest signed checksums both on GitHub and in unseenet.releases, and takes the zip from GitHub or from any mirror that has that version: web entrances whose operator chose to mirror the releases, found in the signed list of entrances and reached over Tor at their onion address. A mirror cannot change anything - the zip must match the signed checksum, or the next source is tried - so you do not need to trust it. To run a mirror, see unseenet-entrance.

Why it can be trusted

Every release has a SHA256SUMS.txt with the checksum of every file, and a signature over it, SHA256SUMS.txt.sig. The updater only goes on when

  1. the signature is from a key built into Unseenet, and
  2. the zip it downloaded matches its checksum.

Releases are signed by the maintainer with the project key, which never leaves the maintainer's computer. Development builds are signed in GitHub Actions with a separate release key, which the updater accepts only when you ask for a development build. So even someone who took over the GitHub project could not send an update to sticks that follow releases. See the project's keys.

It also refuses an older version than the one you have (unless you give --force), and a zip meant for another kind of installation.

What happens, and what can go wrong

The files are replaced one by one: each new file is written next to the old one and then renamed over it, so a file is never half-written. The bootable system's kernel comes last. data/ is never touched, nor are files of your own that you put on the stick, nor the boot loader (ldlinux.sys).

Do not pull out the stick or turn off the computer while it works. If it happens anyway, data/ is still as it was, and choosing Update again finishes the job. If a bootable stick no longer starts, start it on a running computer as a portable, copy data/ off, and write a new image.

Versions before 0.3.0

Updating came with 0.3.0. A stick or folder with an older version has to be written or unpacked once more with 0.3.0 (copy data/ off first, and back afterwards); from then on it updates itself.

Coming

Going back to the previous version, and growing a bootable stick's partition to the whole stick so there is room for it (#68).