Install or update software
How this action installs a package or updates all outdated packages, which settings it has and when the step fails.
Use this action to install a package or bring it to the version you want. It can also update every package a package manager reports as outdated. The device must be online.
Prerequisites
- The device must match the package manager: winget or Chocolatey on Windows, APT on Debian or Ubuntu, Homebrew on macOS. Custom packages work on Windows only and need a published version under Configuration → Custom Packages.
- If Chocolatey is missing on a Windows device, octoja installs it before the first Chocolatey package. For what Homebrew needs on Macs, see the How software deployment works.
- For Logged-in user under Run as, someone must be signed in to the device when winget, Chocolatey or a custom package runs.
Configuration fields
The properties panel has two fields:
In the Add Software dialog, choose the mode first:
Then set up the package and confirm with Add to Package:
For how the minimum age is measured, see Deploy Software to Devices.
Platform support
Outputs
In Insert variable, these outputs are called Succeeded, Action, Installed version and Previous version.
For custom packages, octoja doesn't detect which version was installed before. A successful run therefore always reports action = Installed, the pinned or latest published version as installedVersion and an empty previousVersion. That's true even if the package was already installed.
Result behaviour
Specific package:
The update and detection cases don't apply to custom packages. If only matching steps should run in a mixed fleet, use a condition.
Update all outdated:
In both modes:
With the default On failure setting, a failed step stops the workflow. If later steps should run anyway, choose Continue to next step.
Test step and Test run really install and update software. Try a new step on one suitable device first.
See also: Create an automation · Deploy Software to Devices · How software deployment works · Build and Deploy a Custom Package
Was this helpful?
More in Actions
Send notificationAsk userDisable user accountCreate user accountStill need help? Ask the team