Update

Update every project that installer.dev installed with one command.

update.installer.dev updates every project that installer.dev installed for your user to its latest release.

On Linux and macOS:

Shell
curl -fsSL https://update.installer.dev/linux | sh

On Windows, in PowerShell:

PowerShell
irm https://update.installer.dev/windows | iex

To update a single project, run its install command again. It upgrades in place and does nothing when the latest release is already installed.

What the update prints

The script finds the installs through their receipts and prints one line per project:

◆  installer.dev · update every install
│
◇  Found       3 installs in ~/.local/share/instl
│
◇  installer/demo  v1.0.0 → v2.0.0
◇  sharkdp/bat     v0.25.0 · up to date
◇  acme/tool       v1.4.2 · pinned
│
└  Done. 1 updated, 1 up to date, 1 pinned

Each project goes through the same steps as its install: release lookup, download, checksum and the switch to the new files. An error stops only that project. The script prints it, goes on with the next one and exits with status 1 at the end.

Pinned versions

A project installed with ?version=TAG or INSTL_VERSION stays at that version. Its receipt records pinned=true, and the update skips it. To move it to the latest release, run its install command without a version.

What the update leaves alone

  • PATH and shell files. The update installs into the same directories as before.
  • Projects installed with a different INSTL_HOME. Run the update with the same INSTL_HOME to reach them.
  • Installs of other users. Root installs live in /usr/local/lib/instl, so run the update as the user who installed.

The update reads INSTL_HOME, INSTL_FORCE, INSTL_REQUIRE_CHECKSUM, INSTL_VERBOSE and GITHUB_TOKEN like the install script. It ignores INSTL_VERSION. Configuration describes each variable.