Upgrade the managed node.
LastDB stages a signed release, checks compatibility, drains writes, switches the service, verifies the new process, and can roll back.
Source reviewed 3 December 2026: 5eb6a3a63. For your installed release, run lastdb --help and lastdb --version.
Read the installed state.
lastdb --help lastdb upgrade --help lastdb upgrade --status
lastdb upgrade --status reads the local current and previous release, configured channel, last result, and rejected versions. It does not change the node. Website review metadata identifies merged source reviewed on 3 December 2026; it does not prove the version installed on your machine.
Check, then run the managed upgrade.
Using Homebrew 0.23.62? Stop here. That release used a different layout even though it reported format 16. Keep its working installation and data home. Follow the separate-home copy procedure and compare records and file contents before switching. Editing the marker or moving the data folder cannot convert the encryption keys.
lastdb upgrade --check lastdb upgrade
--check reports the candidate and whether this install is inside the rollout share. It does not switch binaries. A manual lastdb upgrade uses the newest active release even when the install is outside that share. The hourly lastdb upgrade --auto path applies rollout eligibility. Explicit --channel and --version selections also bypass the rollout share; use them only when you intend to select that release.
The upgrade downloads a signed release and validates its archive before the service changes. It checks each existing format marker in the personal store and owned database stores. A mismatch refuses the upgrade before the service changes; a new format needs a deliberate copy into a new home. Current source uses home format 16 and a version-2 database registry. It does not convert an older registry or home at startup. It drains writes, asks the daemon to prepare for stop, switches the current link, starts the candidate, verifies node health and repeats the installed-app checks that passed before the switch, then observes the candidate before it keeps the new release. A new failure in these selected checks triggers rollback. App probes are read-only samples for readable declared alternate and sorted keys; they do not cover app writes or every app workflow. Existing app failures do not block the upgrade.
Cloud backup that is behind can block the change. Read the refusal and check backup status. --accept-backup-behind allows the upgrade to proceed while leaving a smaller cloud recovery point; it does not roll back local data. See lastdb upgrade --help for the installed release's exact options.
Return to the previous program pair.
lastdb upgrade --rollback
The managed updater retains the previous program pair for rollback. A rollback changes the running program pair and can refuse when cloud backup is behind. It does not restore database contents to an earlier point. For data recovery, use the backup and recovery guide.
Install a service or adopt an existing job.
The current Homebrew formula has no service block. For a fresh home with no running daemon or job, install the managed LaunchAgent:
lastdb service install
If an older Homebrew job already runs LastDB, leave it running and adopt that job once. homebrew.mxcl.lastdb is a label used by an older Homebrew service; it is not the current formula's label. Check the actual job definition first; a custom label needs its exact value.
lastdb service adopt --label homebrew.mxcl.lastdb
Adoption drains writes, stops the old daemon, switches the job to the managed program path, starts it, and verifies it. It does not move data inside the home. Managed macOS services use ~/Library/LaunchAgents/<label>.plist. Linux service support remains in source, but no Linux release is published now.
Stop a fresh install and keep your data.
The current LastDB Homebrew formula is edgevector/lastdb/lastdb. Uninstalling it removes the bootstrap package; it does not uninstall a managed service or erase ~/.lastdb.
On a fresh default install, close apps that are writing. If you use cloud sync, wait for pending uploads to finish. Run this as the logged-in user to stop the updater and database, including at the next login. For an adopted or custom service, use its own label.
( set -e domain="gui/$(id -u)" for label in com.edgevector.lastdb-app-registry com.edgevector.lastdbd; do launchctl disable "$domain/$label" launchctl bootout "$domain/$label" done )
Now remove the Homebrew bootstrap package. Your database, identity and managed binaries stay on disk.
brew uninstall edgevector/lastdb/lastdb
To resume that same default install, run the following and check ~/.local/bin/lastdb status --json.
( set -e domain="gui/$(id -u)" for label in com.edgevector.lastdbd com.edgevector.lastdb-app-registry; do launchctl enable "$domain/$label" launchctl bootstrap "$domain" "$HOME/Library/LaunchAgents/$label.plist" done )
If the older formula edgevector/folddb/folddb is installed, use that exact formula name instead. The current formula has no Homebrew service block, so brew services stop lastdb is not the service stop path. There is no lastdb uninstall command. Before removing binaries used by a managed service, stop that exact LaunchAgent or user service through its service manager. Preserve ~/.lastdb unless you intend to erase the local database, identity, backup credentials, and update state. This page does not provide a data deletion command.
Choose another task.
Install
Start your database and choose an optional app.
Use LastDB
Use Brain, LastSecrets, and MCP.
Backup and recovery
Connect cloud backup and restore into a fresh home.
Node health
Check the socket and service before changing anything.