Replaces Ninite for endpoint software: one catalog, one command line, and the same behaviour on Windows, macOS and Linux. Single static binary, no server and no agent, driven from an RMM script runner or by hand. - catalog of ~50 apps compiled into the binary, extendable with YAML overlays in catalog.d or via --catalog, no rebuild required - providers: winget, choco, brew, cask, apt, dnf/yum, zypper, pacman, flatpak, snap, plus direct vendor downloads (msi/exe/msu/dmg/pkg/deb/rpm/zip/tar.gz/ AppImage) - sources are tried in order and fall through, so one catalog entry covers winget on Windows, a cask on macOS and the vendor .deb on Debian - provider-independent detection (registry, paths, commands) makes runs idempotent even for software installed by hand - unattended by construction: stdin closed, silent flags, per-command timeouts - handles the traps that break naive wrappers: winget missing under SYSTEM, Homebrew refusing root, 1641/3010 reboot exits, "already installed" reported as failure - --json summary on stdout with progress on stderr, and RMM-friendly exit codes (0 ok, 1 failed, 2 usage, 3 privileges) Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
5.7 KiB
Catalog format
The catalog says what deployr can install and how. One copy is compiled into the
binary (internal/catalog/data/apps.yaml); overlays let you add or override
entries on a machine without rebuilding.
Where overlays are loaded from
In increasing order of precedence:
C:\ProgramData\Deployr\catalog.d\*.yaml(Windows)/var/lib/deployr/catalog.d/*.yamland/etc/deployr/catalog.d/*.yaml(Unix)- The per-user cache directory's
catalog.d(used automatically when the machine-wide path is not writable) - Anything passed with
--catalog FILE_OR_DIR(repeatable)
An overlay app whose id matches a shipped app replaces it entirely — no
deep merge — so what you read in the file is exactly what will run. Profiles are
replaced by name the same way.
Check an overlay before you ship it:
deployr catalog validate ./my-apps.yaml
Document shape
apps:
- id: my-app # required, unique, lowercase
name: My Application # required, human name
description: ...
homepage: https://...
categories: [line-of-business]
aliases: [myapp] # alternative names accepted on the command line
windows: # one or more of windows / darwin / linux
sources: [...] # required, tried in order
detect: {...} # how to tell it is already installed
notes: ... # shown by `deployr info`
profiles:
onboarding: [my-app, chrome, 7zip]
Sources
Sources are tried top to bottom. The first provider that exists on the
machine is used; if it fails, deployr moves to the next one (unless
--strict). Put the route you trust most first.
Package manager sources
sources:
- provider: winget # winget|choco|brew|cask|apt|dnf|zypper|pacman|flatpak|snap
id: Google.Chrome # the provider's own package identifier
args: ["--locale", "en-US"] # optional extra arguments
arch: [amd64] # optional: restrict to these GOARCH values
repo: flathub # optional: flatpak remote
Direct vendor downloads
sources:
- provider: direct
url: https://vendor.example/app-setup.msi
urls: # or per-architecture, overriding url
amd64: https://vendor.example/app-x64.msi
arm64: https://vendor.example/app-arm64.msi
kind: msi # msi|exe|msu|dmg|pkg|deb|rpm|zip|tar.gz|appimage
# inferred from the URL when omitted
silent_args: ["/S"] # REQUIRED for kind: exe
sha256: 9f2c... # optional; enforced when set, required by --require-checksum
app_name: MyApp.app # dmg/zip on macOS: the bundle to copy to /Applications
dest: "%ProgramFiles%/MyApp" # zip/tar.gz: extraction target
uninstall_id: my-app # Linux: package name to remove; Windows: registry DisplayName
Notes that matter in practice:
kind: exewithoutsilent_argsis rejected. A bare vendor.exeopens a wizard on someone's screen and then hangs until the timeout — refusing is the correct behaviour, not a limitation.- Evergreen URLs cannot be checksum-pinned. A vendor "latest" link changes
content on every release. Pin
sha256only for versioned URLs, and use--require-checksumon sites where an unpinned download is unacceptable. .dmghandling: a.pkginside the image wins; otherwise the.appnamed byapp_name(or the only one present) is copied to/Applicationswithditto, replacing any existing bundle..debinstalls go throughapt-get install ./file, so dependencies resolve instead of leaving a half-configured dpkg state.
Detection
Detection is how deployr decides an app is already installed, no matter who
installed it. It runs before any provider is touched, which is why
deployr install chrome is fast and idempotent on a machine that already has
Chrome from an image.
detect:
registry: ["Google Chrome"] # Windows uninstall entries, case-insensitive substring
paths: # files or directories; env vars and globs allowed
- "%ProgramFiles%/Google/Chrome/Application/chrome.exe"
- "/Applications/Google Chrome.app"
commands: [google-chrome-stable] # executables that must resolve on PATH
Evaluation order is registry, then paths, then commands — first hit wins. The registry scan covers 64-bit, 32-bit and per-user uninstall keys; missing one of those is the classic reason a "not installed" check is wrong.
Version reporting comes from, in order: the provider's own query, the registry's
DisplayVersion, or a macOS bundle's CFBundleShortVersionString. An app with
no version available still reports correctly as installed.
If detect is omitted entirely, deployr cannot skip work it does not need to
do, and update / uninstall will always run the provider. Always write one.
A complete overlay example
C:\ProgramData\Deployr\catalog.d\atomit.yaml
apps:
- id: linemgr
name: LineManager Client
description: Line-of-business client for the accounting team
categories: [line-of-business]
windows:
sources:
- provider: direct
url: https://files.example.com/linemgr/LineManagerSetup-4.8.2.msi
kind: msi
sha256: 5f0d9a3c1e...
silent_args: ["SERVER=lm01.corp.example.com"]
detect:
registry: ["LineManager Client"]
# Override a shipped app: force Chrome through Chocolatey only.
- id: chrome
name: Google Chrome
categories: [browser]
windows:
sources:
- provider: choco
id: googlechrome
detect:
registry: ["Google Chrome"]
profiles:
accounting: [linemgr, chrome, adobereader, 7zip]
Then:
deployr install @accounting --json