feat(updates): the update history of an apt host from apt's own log (NetOrk/netork#2728)

get_update_history through napalm-device-types' AptHistoryMixin, over run_command
as the login user. Another package manager raises NotImplementedError. Requires
napalm-device-types 4.47.0.
This commit is contained in:
Christian Manivong committed 2026-11-26 23:05:44 +01:00
1 parent 670e62e0f0
commit 66b6068ebf
5 files changed
+126 -6

No files matched your search

+11
View File
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Added
- `get_update_history(since)` on apt hosts through napalm-device-types' `AptHistoryMixin`
(4.47.0): every transaction in apt's history log and its rotations, newest first, with
what it changed, when, who asked and the error it ended with (NetOrk/netork#2728). Read
over `run_command` as the login user, as root only for a file that user may not read. A
host with another package manager (dnf, yum, apk, pacman) raises `NotImplementedError`:
their histories are not read yet. OpenMediaVault has it through `LinuxDriver`.
### Changed
- Requires napalm-device-types 4.47.0, where `AptHistoryMixin` is released.
## [0.19.0] - 2026-11-26
### Added