snippetbashTip
dnf versionlock — Protect packages from updates to newer versions. Not default to `dnf` but supported via `dnf-plugins
Viewed 0 times
commandprotectfromdnf versionlockupdatesclinewerpackages
linux
Problem
How to use the
dnf versionlock command: Protect packages from updates to newer versions. Not default to dnf but supported via dnf-plugins-core. See also: dnf. More information: <https://dnf-plugins-core.readthedocs.io/en/latest/versionlock.html>.Solution
dnf versionlock — Protect packages from updates to newer versions. Not default to dnf but supported via dnf-plugins-core. See also: dnf. More information: <https://dnf-plugins-core.readthedocs.io/en/latest/versionlock.html>.List the current versionlock entries:
dnf versionlockAdd a versionlock for all available packages matching the spec:
dnf versionlock add {{package}}Add an exclude (within versionlock) for the available packages matching the spec:
dnf versionlock exclude {{package}}Remove any matching versionlock entries:
dnf versionlock delete {{package}}Remove all versionlock entries:
dnf versionlock clearCode Snippets
List the current versionlock entries
dnf versionlockAdd a versionlock for all available packages matching the spec
dnf versionlock add {{package}}Add an exclude (within versionlock) for the available packages matching the spec
dnf versionlock exclude {{package}}Remove any matching versionlock entries
dnf versionlock delete {{package}}Remove all versionlock entries
dnf versionlock clearContext
tldr-pages: linux/dnf versionlock
Revisions (0)
No revisions yet.