Installation

Tier ships as a single .deb package named tierd. It contains tierd, tierctl, tier-messenger, and tier-agent, the systemd units, and the default configuration. The binaries link their transport and crypto libraries statically; the only shared dependency is glibc. There are two package sources: the official GitHub releases, and the Geek Foundation PPA.

Requirements

  • Ubuntu 22.04 or 24.04 (the package floor is libc6 >= 2.34). The PPA supports 24.04 only.
  • amd64, the architecture current releases ship.
  • curl and sudo.
  • IPv4 reachability to GitHub, or a proxy (see IPv6-only networks).

Install from GitHub releases

The install script downloads the release .deb from tier-core releases, installs it with apt so dependencies resolve, and copies the chosen config preset to /etc/tier/tierd.toml on first install only. It never overwrites an existing config. Re-running is safe: an already-installed version is skipped.

Client node (default):

curl -fsSL https://raw.githubusercontent.com/tier-org/tier-core/main/scripts/install.sh | sudo bash

Validator node:

curl -fsSL https://raw.githubusercontent.com/tier-org/tier-core/main/scripts/install.sh | sudo bash -s -- --preset=validator

Exact version (the default is the latest release):

curl -fsSL https://raw.githubusercontent.com/tier-org/tier-core/main/scripts/install.sh | sudo bash -s -- --version=v0.7.2

After installation the service is enabled for boot but not started, so you can review the config first:

sudoedit /etc/tier/tierd.toml
sudo systemctl start tierd

On first start the node creates its Ed25519 identity under /var/lib/tier and joins through the seeds compiled into the binary; no seed argument is required. See First run for the next steps.

Manual install

Download tierd_<version>_amd64.deb from the latest release, then:

sudo apt install ./tierd_X.Y.Z_amd64.deb
sudo cp /usr/share/doc/tierd/tierd.client.toml /etc/tier/tierd.toml   # or tierd.validator.toml
sudoedit /etc/tier/tierd.toml
sudo systemctl start tierd

Use apt install ./file.deb, not dpkg -i, so dependencies are pulled in.

Updating

The update script installs the latest release only if it is newer than the installed one. /etc/tier/tierd.toml is a dpkg conffile and is preserved. The package does not restart tierd on upgrade, so the script restarts it itself, but only if it was already running: a deliberately stopped node stays stopped.

curl -fsSL https://raw.githubusercontent.com/tier-org/tier-core/main/scripts/update.sh | sudo bash

Manual update

sudo apt install ./tierd_X.Y.Z_amd64.deb
sudo systemctl restart tierd

The explicit restart is required: the package's postinst enables but does not restart the service, so a running node keeps the old binary until it is restarted.

Geek Foundation PPA

An alternative package source for Ubuntu 24.04 (noble), maintained by Geek Foundation as the ppa:geekfoundation/tier Launchpad archive. It is not part of the tier-core release process: PPA packages may lag behind the GitHub releases.

The install script adds the PPA, installs tierd, and copies a config preset to /etc/tier/tierd.toml. It is idempotent: re-running skips completed steps and never overwrites an existing config.

Client node:

curl -fsSL https://raw.githubusercontent.com/GeekFoundation/tier-ppa/main/scripts/install.sh | sudo bash

Client node with automatic updates:

curl -fsSL https://raw.githubusercontent.com/GeekFoundation/tier-ppa/main/scripts/install.sh | sudo bash -s -- --unattended-upgrade

Validator node:

curl -fsSL https://raw.githubusercontent.com/GeekFoundation/tier-ppa/main/scripts/install.sh | sudo bash -s -- --preset=validator

Validator node with automatic updates:

curl -fsSL https://raw.githubusercontent.com/GeekFoundation/tier-ppa/main/scripts/install.sh | sudo bash -s -- --preset=validator --unattended-upgrade

Review /etc/tier/tierd.toml if needed, then start the daemon:

sudo systemctl start tierd

Automatic updates

With --unattended-upgrade, Ubuntu's unattended-upgrades checks for new versions once a day and upgrades automatically. A running node restarts on the new binary; a stopped node stays stopped. To disable automatic updates only:

sudo rm -f /etc/apt/apt.conf.d/51geekfoundation-tier

IPv6-only networks

GitHub serves its API and release assets over IPv4 only: api.github.com, github.com, and the asset hosts have no AAAA record. On a pure IPv6 network the install and update scripts cannot reach the .deb directly. Route them through a dual-stack proxy:

curl -fsSL https://raw.githubusercontent.com/tier-org/tier-core/main/scripts/install.sh \
  | sudo bash -s -- --proxy=http://PROXY_HOST:3128

--proxy accepts http://, https://, and socks5h://; use socks5h so the proxy also resolves DNS. update.sh takes the same flag. A CONNECT or SOCKS proxy tunnels TLS to GitHub unchanged, so it never sees the plaintext; it only needs to be reachable over IPv6 and able to egress over IPv4.

curl also honours https_proxy and ALL_PROXY, but curl | sudo bash drops the environment: pass --proxy or run with sudo -E. The script itself comes from raw.githubusercontent.com, which has IPv6, so only the in-script GitHub calls need the proxy.

Avoid reverse-proxy mirrors that re-terminate TLS and re-serve the .deb. Release assets are not separately signed, so TLS to GitHub is the only integrity guarantee, and a terminating mirror replaces it with trust in the mirror.

Build from source

Requires a C++20 compiler, CMake 3.25 or newer, Ninja, Git, Perl, and the repository submodules. On Debian or Ubuntu:

sudo apt-get install build-essential cmake git ninja-build perl
git clone --recurse-submodules https://github.com/tier-org/tier-core.git
cd tier-core

Release build, with the same flags the published packages use:

cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DTIER_SANITIZE=OFF
cmake --build build -j

The default configuration is a Debug build with AddressSanitizer and UndefinedBehaviorSanitizer enabled and warnings treated as errors, intended for development:

cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug
cmake --build build -j
ctest --test-dir build --output-on-failure

A build needs Git metadata with a reachable vX.Y.Z tag to derive its version. Without it, pass the version explicitly with -DTIER_VERSION_OVERRIDE=X.Y.Z. Binaries are written under build/apps/; this includes tier-vanity, which the package does not ship.

Uninstall

Remove the package and keep /etc/tier:

sudo apt remove tierd

Remove the package and all configuration:

sudo apt purge tierd
sudo rm -rf /etc/tier

If you installed from the PPA, also remove the repository:

sudo add-apt-repository --remove ppa:geekfoundation/tier

Neither command removes state: the node identity under /var/lib/tier and the agent data under /var/lib/tier-agent stay on disk. See Identity model before you delete or move them.