Pcornel
Automation · Linux Automation

Package Automation

Cheat sheet · https://pcornel.dk/topic.php?topic=5657

Back to the Topic

Answer

Package Automation manages Linux repository metadata, package selection, version state and transactions while distinguishing package-manager success from service/workload acceptance.

Remember

  • Repository reachable ≠ required package/version available.
  • Package transaction success ≠ dependent service healthy.
  • Package installed ≠ expected binary/config is active.
  • Latest ≠ controlled or reproducible version.

First checks

  • apt-get -s upgrade / dnf check-update — pending updates
  • ansible <group> -m package -a 'name=htop state=present' --check — package state
  • Pinned versions where required — control

Verify in this order

desired packages → package manager → installed state

Where it usually breaks

Package-manager success establishes package state only; it does not prove services consumed the new bits or remained healthy.

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Package Automation automation proof-boundary map

BoundaryHealthy evidenceSuspicious evidence
Scope / identityExact source revision, hosts and execution identity are explicitSelector drift, stale inventory or wrong token changes scope/authority
OperationTool/provider action and per-host result are traceablePartial failure, hidden error semantics or environment differences are lost
Platform statePersistent and effective state are read backCommand/cmdlet success is mistaken for convergence
Workload proofOriginal service/application acceptance passesAutomation summary substitutes for actual runtime behavior

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5657

Confirmation

Confirm action

Continue?