diff --git a/pages/linux/dnf-versionlock.md b/pages/linux/dnf-versionlock.md new file mode 100644 index 0000000000..9b616c055a --- /dev/null +++ b/pages/linux/dnf-versionlock.md @@ -0,0 +1,26 @@ +# dnf versionlock + +> Protect packages from updates to newer versions. +> Not default to `dnf` but supported via `dnf-plugins-core`. +> See also: `dnf`. +> More information: . + +- List the current versionlock entries: + +`dnf versionlock` + +- Add 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 clear`