Package Automation
Cheat sheet · https://pcornel.dk/topic.php?topic=5657
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 updatesansible <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
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Scope / identity | Exact source revision, hosts and execution identity are explicit | Selector drift, stale inventory or wrong token changes scope/authority |
| Operation | Tool/provider action and per-host result are traceable | Partial failure, hidden error semantics or environment differences are lost |
| Platform state | Persistent and effective state are read back | Command/cmdlet success is mistaken for convergence |
| Workload proof | Original service/application acceptance passes | Automation 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