dnf check-update / yum check-update and yum's security query now run with --cacheonly, as apt's read uses its local index. With an expired cache they downloaded the repositories' metadata first, and on an Oracle Linux 9.8 host on OCI the poll ran into netOrk's 120 s budget on every run, so the device went offline. refresh_available_updates() (dnf makecache) still refreshes the cache. Without a cache the read fails at once and says to refresh the index. The README row that called check-update unprivileged now says it runs as root and reads root's cache.
Tests: dnf and yum both send --cacheonly for check-update and for the security query; a failed read with no output says to refresh the index.
Depends on NAPALM/napalm-device-types#76: its PR has to be on main first, because CI installs device-types from there and the [dnf] case checks the shared security command.
`dnf check-update` / `yum check-update` and yum's security query now run with `--cacheonly`, as apt's read uses its local index. With an expired cache they downloaded the repositories' metadata first, and on an Oracle Linux 9.8 host on OCI the poll ran into netOrk's 120 s budget on every run, so the device went offline. `refresh_available_updates()` (`dnf makecache`) still refreshes the cache. Without a cache the read fails at once and says to refresh the index. The README row that called check-update unprivileged now says it runs as root and reads root's cache.
Tests: dnf and yum both send `--cacheonly` for check-update and for the security query; a failed read with no output says to refresh the index.
**Depends on NAPALM/napalm-device-types#76**: its PR has to be on `main` first, because CI installs device-types from there and the `[dnf]` case checks the shared security command.
Closes #59
`dnf check-update` and `yum check-update`, and yum's security query, download
the repositories' metadata first whenever the cached copy has expired. On an
Oracle Linux host on OCI that outlasted netOrk's 120 s poll on every run, and
the device went offline. They now run with --cacheonly, as apt's read uses its
local index; refresh_available_updates (`dnf makecache`) still refreshes it.
Without a cache the read fails at once and says to refresh the index. The
README row claimed check-update ran unprivileged; it runs as root.
dnf's security query is NAPALM/napalm-device-types#76.
Closes#59
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
dnf check-update/yum check-updateand yum's security query now run with--cacheonly, as apt's read uses its local index. With an expired cache they downloaded the repositories' metadata first, and on an Oracle Linux 9.8 host on OCI the poll ran into netOrk's 120 s budget on every run, so the device went offline.refresh_available_updates()(dnf makecache) still refreshes the cache. Without a cache the read fails at once and says to refresh the index. The README row that called check-update unprivileged now says it runs as root and reads root's cache.Tests: dnf and yum both send
--cacheonlyfor check-update and for the security query; a failed read with no output says to refresh the index.Depends on NAPALM/napalm-device-types#76: its PR has to be on
mainfirst, because CI installs device-types from there and the[dnf]case checks the shared security command.Closes #59