Packages
Praxis inventories installed packages on every system and tracks available updates so you can schedule patching at your own pace, not the distro’s.
Inventory
Update > Package Inventory lists every installed package across the fleet. Filters narrow by package name, system, category, security-critical status, and whether the package is held. Use Fleet Search when you want to answer “which systems have openssl <= 3.0.7?”-style questions across all hosts.
Scans run on a schedule (daily by default) and on-demand from the system detail page. Each scan writes the current package list to the packages table and deltas to package_history, so you can see when a package was installed, upgraded, or removed.
Package types and scanners
Praxis auto-detects the package manager per distro:
apt- Debian, Ubuntu (scans/var/lib/dpkg/status+apt list --upgradable)yum/dnf- RHEL, Rocky, Alma, Fedora (scansrpm -qa+dnf check-update)zypper- openSUSE / SLES (inventory only)pacman- Arch (inventory only)
Scanners shell out via the system’s credential and capture structured output, not plain text parsing - version comparisons are reliable.
Inventory is not servicing. Detection and inventory are broader than update servicing. Update/install/remove jobs and the patch lifecycle are supported only on the deb (
apt) and EL (dnf/yum) families;zypper,pacman, andapkhosts appear in inventory but are not serviced for changes. See the Linux support matrix.
Package updates are governed. A one-off update from these pages and a planned rollout follow the same patch policy, approval, window and reboot rules. See direct and bulk updates here, and patch workflows for policies, rings, waves and rollback.
Available updates
Update > Available Updates shows every package with a newer version available. Columns: package, installed version, available version, system, security-critical flag, advisory if known. The Security only toggle filters to security-critical updates.
Two common workflows from this page:
- Target a specific package - use the filters to find every system running
openssl< 3.0.7, then Schedule job against the matching systems to patch just that package - Patch one host now - select the system and use Update All, which previews the run before you confirm it; for recurring work, schedule a job against a smart group
Security updates
Update > Security Updates is a convenience filter over Available Updates. Packages marked is_security_critical surface advisory references where the distro provides them.
A security count needs a security scan
An ordinary package scan asks a host what is upgradable. It never asks which of those updates carries a security advisory, so it classifies nothing as a security update. Until a security scan has asked that question, the absence of security rows means “not asked”, not “none pending”.
Ask it explicitly:
- one host, from
Update > Security Updates: select the system and run its security scan; - a cohort, from the scope scan with the security option enabled.
Scan states on the dashboard
The Fleet Dashboard reports the state of security scanning across the hosts in your fleet scope rather than a bare number:
| State | Shown as | Meaning |
|---|---|---|
| Never scanned | Not scanned | No security scan has run for these hosts. |
| In flight | Scanning | A security scan is running. |
| Failed | Scan failed | A scan ran and produced no usable result. The failure reason and the last successful scan time are shown with it. |
| Partial | Partial scan | Some hosts in scope are covered and some are not, or a scan stored rows but could not use part of its result. Any count is a floor, rendered N+. |
| Complete | a number | Every host in scope has a successful scan behind it. This is the only state in which a count, zero included, is trustworthy. |
A zero appears only after a completed scan. Failed and partial states never render as zero, and the health banner does not call a fleet healthy while security state is unknown, in flight, failed, or partially covered.
A scan is partial rather than successful when the host was reached but part of the result could not be used: advisory output that could not be read, or reported packages absent from that host’s inventory. The host does not count as covered, so its number stays a floor.
A scan still marked running after 30 minutes stops being reported as in progress, which releases a host pinned by a process that died mid-scan.
GET /fleet/dashboard carries this as a security_posture object: state, counts_trustworthy, coverage_complete, systems_total, systems_scanned, systems_partial, systems_failed, systems_scanning, systems_never_scanned, last_successful_scan_at, last_scan_at, last_failure_detail, coverage_detail, systems_with_security_updates, and pending_security_updates. The existing patch_compliance block is unchanged.
Scans are recorded in the operation trail: a single-host scan as security_scan, a cohort scan as cohort_security_scan. A per-host result is success, partial, failure, or skipped.
Direct and bulk updates
An update started from Available Updates, Security Updates or Fleet Search, or through the package API, runs as a patch plan that Praxis generates for you. It follows the patch policy that applies to each host: the same scope rules, approvals, maintenance window, rollout waves and reboot lifecycle as a plan you build yourself. There is no separate path that skips them.
Each host needs an effective patch policy. Bind a policy to the host or one of its groups, or mark a policy as the fleet default, under Update > Patch Policies. A host with no policy, a disabled policy, or two policies in conflict is blocked with the reason, and nothing is sent to it. For immediate one-off updates, a fleet default policy with no approval requirement and no maintenance window does that; add approvals, windows and reboot behavior where a host needs them.
Before you confirm
Confirming an update first shows a preview. For every host it lists:
- the packages that will be updated, with the installed and target revision, and any that will not be (held, not pending, outside the policy scope, already covered by other open work, or held back because of the repository that offers the update);
- the patch policy, whether approval is required and how many, and the maintenance window with its next opening;
- the reboot policy and reboot window, and what happens if the evidence of a needed reboot is positive, negative or unknown;
- whether the work runs now, waits for approval, waits for a window or an earlier wave, or is blocked.
Your confirmation is bound to that preview. If the packages, revisions, update classification, policy, windows, concurrency limit or waves changed in the meantime, nothing is submitted and the new preview is shown for review.
What gets frozen
An accepted request records who asked, the target hosts, the exact packages and target revisions, the governing policy, the concurrency limit, the failure behavior, and the definitions of the maintenance and reboot windows. Only pending updates recorded by a package scan can be selected, and each is installed at the recorded revision. A request to update everything selects what is pending at that moment; it never becomes an unbounded upgrade of the host. Starting the generated plan by hand cannot change the confirmed limits.
Each installed architecture is tracked on its own. A package installed for more than one architecture is approved, installed and verified architecture by architecture. The preview lists each one, the command names each one (apt-get install ... name:amd64=version name:i386=version, or dnf install ... name-0:version.x86_64 name-0:version.i686), and the host succeeds only when every approved architecture reports its confirmed revision. Other revisions of the same architecture may stay installed beside it, as with RPM install-only packages; the same revision on another architecture does not count. A package whose installed architectures are offered different revisions is blocked. So is a security-only selection of a package with a pending update on another architecture that is not classified as security. An architecture that gains a pending update after confirmation fails the check before the command.
An RPM epoch is part of the revision. A nonzero epoch is shown, confirmed, sent, recorded in update history and verified: 1:2.0-1 and 2.0-1 are different revisions, and a host still at 2.0-1 has not reached a target of 1:2.0-1. The command states the epoch even when it is zero. A package whose installed or offered epoch is not recorded, or whose recorded pending revision equals the installed one, is blocked until the host is scanned again.
Security-only requests stay security-only. An update started from Security Updates, update-security, or a request with security_only, and any request under a policy whose scope is security only, selects only updates classified as security updates. Each one also has to be covered by an active security advisory that applies to the host and selects exactly the pending revision, under the same rules a security-only plan uses. Other named packages are shown as blocked with the reason, including every package on a host for which no advisories have been synced or imported. The covering advisory is recorded on the generated plan.
Praxis reads the host first, then checks the following as the last step before the command, again once the connection is open, separately for each host:
- the execution is still running;
- the person who requested it still has access to the host and a role that may update it;
- the same policy still applies, and its approval, reboot, window and failure settings are unchanged;
- the maintenance window is enabled, open and defined as it was confirmed;
- no selected package has been held, changed version, had its pending revision replaced, or, for a security-only selection, lost its security classification or the advisory that covered it.
Updates are subject to the same repository origin rules as any plan. An update whose offering repositories the scan could not establish in full, or that a trusted-origin rule holds back, is shown as blocked in the preview and is not installed.
When those checks have finished, the window is judged against the clock once more, immediately before the command is handed to the connection, so a window that closes while the checks run is not used.
If any check fails, nothing is installed on that host. A host whose window closed, or whose execution was paused, goes back to waiting; a canceled one is canceled; for any other failure the host fails and the record says why. Work outside the frozen scope needs a new request, and a new approval where the policy requires one. A package held on a host is skipped and reported.
Running now or waiting
A confirmed update is recorded first and answered at once with the operation reference; the package commands run in the background. If the answer is lost, for example because the page was reloaded or the connection dropped, the package pages look the operation up by the key of your confirmation instead of submitting again. Background work that is interrupted by a restart is picked up by the next scheduled pass.
| Situation | What happens |
|---|---|
| No approval required, no window or window open | The update starts at once. Follow its operation record for the result. |
| Approval required | A pending request is recorded. An approver decides on the generated plan under Update > Update Plans. |
| Maintenance window closed | The work is queued and starts after the window opens. Hosts not reached when a window closes wait for the next opening. |
| Later rollout wave | The host waits until earlier waves, including their reboots, have finished. See rollout rings and reboots. |
Praxis checks waiting work about once a minute, so approved or newly eligible work starts without anyone resubmitting it.
Bulk updates
A bulk update creates one operation, with one generated plan for each distinct policy among its hosts. Each host has its own outcome. The concurrency limit (max_parallel, 1 by default, at most 10) caps how many hosts of the whole operation are being updated or rebooted at the same time, across all of its plans. A sent reboot counts against the limit until it is verified. The commands of one plan are sent one host after another.
The policy’s failure behavior applies. A host fails when its command fails, and also when the command exits cleanly but the host is not at every confirmed revision or its installed versions cannot be read. Under continue, a failed host does not stop the others. Under pause fleet, a failure pauses the remaining hosts of that plan until someone resumes or cancels the execution on the plan page.
The operation record
Update > Update Operations lists direct and bulk updates. One record shows, per host, the package outcomes, the verification result, the reboot decision and evidence, the approval state, and any pending action:
| Pending action | What to do |
|---|---|
| Waiting for approval | An approver decides on the generated plan. |
| Approval expired or rejected | Nothing was changed. Cancel if needed and submit again. |
| Maintenance window closed, changed, disabled, missing or unusable | A closed window needs no action. Fix a disabled, missing or unusable window. After a changed window, cancel and submit again. |
| Requester lost access | Restore the requester’s access, or cancel and have someone with access submit again. |
| Execution paused | Resume or cancel it on the plan page. |
| Waiting for capacity | Another host of the operation is being updated or rebooted. A sent reboot frees its place once verified. |
| Waiting for an earlier rollout ring | See the earlier host in the same record. |
| Command sent, result not received | Nothing to resend. Praxis keeps checking the host; let running package work finish, or restore connectivity. An administrator can resolve it. |
| Closed by an administrator | What is installed is unknown. Check the host, scan it, check whether it needs a reboot, and submit a new update. |
| Reboot evidence unknown | Nothing is scheduled. See unknown reboot evidence, then use Reconcile reboot queue or Re-check evidence. |
| Reboot scheduled | Nothing. Praxis sends it once the scheduled time arrives, while the window is open. |
| Reboot not sent: window or policy | The confirmed window is closed, disabled or changed, or the policy changed. A closed window opens again; otherwise handle the reboot through your change process. |
| Reboot not sent: package command unresolved | A package command sent to the host has no result yet. Settle or resolve that command first. |
| Reboot not sent: no baseline | The host’s facts could not be collected before the reboot. Restore connectivity; it is tried again. |
| Reboots paused or canceled | Resume the reboots on the plan page, or, after a cancellation, cancel the operation if later hosts are waiting. |
| Reboot refused before sending | Set a valid sudo method on the credential, then Reset the reboot or reconcile the queue. |
| Reboot sent | Nothing. Praxis verifies it after the grace period and keeps checking until its deadline. |
| Reboot failed | It is not sent again on its own. Check the host, then use Retry verification or Reset on the plan page, or cancel the operation if later hosts are still waiting on it. |
| Reboot needed, no reboot window | Reboot the host through your own change process. Praxis does not schedule it. |
| Update not confirmed | The host is not at every confirmed revision, or could not be read. Scan it, check whether it needs a reboot, and submit a new update. |
| Update failed | Fix the cause, scan the host, and submit a new update. |
Cancel operation withdraws work that has not been sent to a host. It does not interrupt a command that is already running. Administrators and maintainers can see an operation only when every host in it is within their fleet scope.
Verification and reboot evidence
After the command, Praxis reads the installed versions from the host and rescans its inventory, refreshing APT metadata so that the next security-only update has a current listing to select from. Verification is passed, partial, failed, or unavailable; a clean exit code alone never counts as success. Partial, failed and unavailable verification raise a notification.
A host where any approved architecture is not at its confirmed revision, or whose installed versions cannot be read after the command, is recorded as failed before anything follows from it: it counts toward the failure behavior, no reboot is queued for it, and it does not complete a rollout wave successfully. The host may still have changed, so check it before submitting again. When the versions after the command show every confirmed revision but the reading before it was missing, the host succeeds and verification reads unavailable.
Whether a reboot follows depends on the policy:
| Reboot policy | Evidence positive | Evidence negative | Evidence unknown |
|---|---|---|---|
never | No reboot is queued; the result reports that one is needed. | No reboot. | No reboot is queued. |
if_required | A reboot is queued. | No reboot. | Queued as unknown, and neither scheduled nor sent. It is never treated as not needing a reboot. |
always | A reboot is queued. | A reboot is queued. | A reboot is queued. |
A queued reboot is scheduled for the next opening of the policy’s reboot window after the decision, even if that window is open at the time; without a window it stays pending. An unknown row stays pending until a reconcile of the reboot queue gets an answer from the host. In a staged rollout, the reboots of a completed wave can be sent and verified while the execution is running, and the next wave starts once they are healthy.
Praxis sends and verifies these reboots on its own, as for any patch plan. A reboot of a direct update is sent only while the confirmed reboot window is enabled, open and unchanged, and the confirmed policy still applies. Praxis collects the host’s facts just before sending and again when it verifies, and compares the two; a host whose facts cannot be collected before the reboot is not rebooted. The reboot window is judged against the clock once more immediately before the reboot command is sent, and a host with a package command that has no result yet is not rebooted. A sent reboot is queued again only by an operator, after the host shows that it never restarted. See reboot scheduling and its controls.
An API result carries reboot_required and a structured reboot_evidence block when at least one installed version moved, or when that could not be verified. Their absence means no observation applies, not that no reboot is needed. The outcome not_collected means the host was not asked.
Retries and restarts
- Repeating a confirmation, or an API call with the same
request_key, returns the same operation and sends nothing more. - Audit events are stored with the change they describe and delivered to the audit log afterward, so an interruption delays them instead of losing them.
- Packages already covered by an open operation, or by open CVE remediation work, are not selected again.
- A generated plan runs once.
- Every caller whose submission was accepted can find the operation by their own
request_key, including one whose request matched work another submission had already opened. - A restart before the command was recorded as sent returns the host to waiting.
- A command is never sent a second time. A reboot that has been sent is never sent again on its own.
A command with no result
Praxis waits up to 10 minutes for the package command of a direct update. A command with no result by then, or whose connection was lost after it was sent, leaves the host running and shown as sent with no result. Giving up does not reliably stop the command on the host: it may still be running, finish later, or end part way.
A host left that way, or by a Praxis restart after the command was recorded as sent, stays unresolved. It is never sent the command again, and elapsed time settles nothing. On each scheduled pass Praxis looks for running package processes on it. What happens next depends on how the command was sent:
- Over SSH, the command has no queue to wait in. The host is settled once Praxis has seen both that no package process is running on it and what its installed versions are. It stays unresolved while a package process runs even if the confirmed revisions already show as installed.
- Through the agent, or by a transport that was not recorded because Praxis stopped while choosing it, the command may still be queued and arrive after the host has been seen idle. Nothing read from the host settles it, including the confirmed revisions showing as installed. Only the result reaching the request that was waiting for it, or an administrator, ends it.
The record shows the transport and the last check:
| Last check | Meaning |
|---|---|
busy | Package processes are running; the record names them. Any apt, apt-get, aptitude, dpkg, dnf, yum or rpm process counts, whether or not it belongs to this update. |
unknown | The host could not be reached, or its process list could not be read. |
versions_unreadable | No package process was seen, but the installed versions could not be read. |
delivery_unconfirmed | No package process was seen, but the command may still be queued for delivery. |
Once an SSH host is idle and readable, it succeeds if every approved architecture is at its confirmed revision and fails otherwise. A late result is handled like any other: update history, audit, rescan, failure behavior and the reboot decision, including for an execution that was canceled or has already ended. The reboot of a canceled execution is not sent automatically; an operator can send it.
While it is unresolved, the host keeps its place against the operation’s concurrency limit and is not rebooted.
Resolving it by hand. After checking the host, an administrator can resolve it from the operation record by giving a reason of at least 10 characters and confirming that no package work is running there. For a command that may still be queued, the administrator also confirms that it can no longer reach the host. Praxis cannot establish that itself: restarting the agent broker discards the operations it holds, and the agent on the host should be stopped or restarted as well. Praxis then checks the host again. If it sees package processes, the request is refused. If the host is idle and readable, it is settled from what it reports. Otherwise it is recorded as failed with closed_unresolved: nothing is claimed about what is installed, verification reads unavailable, no reboot is queued, and its place in the operation is released. Refusals for running package work and completed resolutions are audited, with what was confirmed. Check the package manager on the host first (on Debian, dpkg --audit), then scan it before submitting a new update.
API and compatibility
| Request | Purpose |
|---|---|
POST /packages/updates/preview | Preview without changing anything: system_ids, optional package_names, security_only, max_parallel. |
POST /packages/{system_id}/update | Update one host: optional package_names, security_only, preview_digest, request_key. |
POST /packages/{system_id}/update-security | Apply pending security updates: optional preview_digest, request_key. |
POST /packages/bulk/update | Update several hosts: system_ids, optional package_names, security_only, max_parallel, preview_digest, request_key. |
GET /packages/operations | List operations; optional system_id and limit. request_key returns your own operation submitted with that key. |
GET /packages/operations/{operation_id} | One operation record. |
POST /packages/operations/{operation_id}/cancel | Withdraw unsent work. |
POST /packages/operations/{operation_id}/hosts/{system_id}/resolve | Administrators only: resolve a command with no result. reason (10 to 500 characters) and no_package_work_confirmed set to true, plus no_queued_delivery_confirmed set to true when the host record shows delivery_confirmation_required. A refusal answers 409 with detail.code, such as delivery_confirmation_required. |
request_key is 8 to 64 characters from letters, digits, ., _, : and -. Using it again for a different request is refused.
The update endpoints and their existing response fields remain, with these changes. Review automation that calls them before you upgrade. A submission no longer waits for the package command: send a request_key, keep the operation_id, and read the outcome from GET /packages/operations/{operation_id}.
| Case | Response |
|---|---|
| Accepted | 202, status queued, running, pending_approval, waiting_window, pending or paused, packages_updated 0, plus operation_id, plan_id, execution_id, pending_action and operation. Do not read a 2xx status alone as applied. |
Repeat of a request_key whose host has finished | 200, status success or error with the result fields. |
| Nothing to change on the host | 200, status success, packages_updated 0. |
| Same packages already being updated | 200, status already_running, with the operation_id to follow. |
| No usable policy, or no requested package can be updated | Single host: 409 with detail.code such as no_effective_policy or no_selectable_packages. Bulk: a per-host blocked result. |
| Preview out of date, or request key reused differently | 409 with detail.code preview_stale or request_key_reused. |
| Bulk request with any host still waiting or running | 202; total_pending counts those hosts, and operation_id and operation are included. |
Behavior that changed:
- A named package with no recorded pending update is refused; scan the host first. It is no longer passed to the package manager.
- Requesting all updates when none are pending sends no command.
- The command pins revisions (
apt-get install -y --no-install-recommends name=version, ordnf install -y name-epoch:version-release).
To keep an unattended script working, give its hosts a policy that needs no approval or window, send a request_key, poll the operation until its host reaches succeeded or failed, and treat only succeeded as applied.
Scheduled jobs, package removal, installing a chosen version during a rollback of your own, and holds are separate operations that do not create these records.
Update history
Every package update Praxis runs (manual or scheduled) records a package_history row with from_version, to_version, status, error_message, and the triggering user or job. Update > Update History is a paginated audit trail across the fleet. Use it to answer “when did this system last patch kernel-*?” or to verify rollout after a scheduled job.
Third-party repository updates
Update > Repository Updates shows the updates that trusted third-party repositories offer, where each comes from, and whether it can be selected for a patch plan. See third-party repository updates.
Repository status
Update > Repository Status lists the configured repositories on each system (sources.list, dnf .repo files) along with their reachability. Useful for catching a stale mirror or a typo in a repo URL before a scheduled job hits the failure.
Reports
Report > Package Reports provides fleet-wide roll-ups:
- Summary - total installed, security-critical count, held count, updates available, stale-scan systems, compliance average
- Outdated - paginated list of all outdated packages with filters for security-only and by system
- Compliance - per-system compliance percentage (up-to-date / total) with a fleet average
All three endpoints accept an optional smart_group_id query param. The report header has a scope dropdown - pick a smart group and the stats recompute for that subset. Fleet-wide is the default.
Held packages
Marking a package as “held” tells Praxis’ update jobs to skip it, even when a newer version is available. Hold state is per-system and visible on the system detail page. Held packages still show in inventory and still get version pinning checks from baselines.
Pairing with drift detection
Packages integrate with Drift Detection through the baseline packages ruleset:
- required - package must be installed (any version)
- forbidden - package must not be installed
- version_pin - package must be installed at exactly this version
Version pinning uses the inventory table as its source of truth, so as long as your scans are fresh, baselines catch drift without extra SSH cost.