mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 20:49:15 +00:00
Update cheatsheets
This commit is contained in:
31
tldr/linux/dnf-versionlock
Normal file
31
tldr/linux/dnf-versionlock
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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 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`
|
||||
Reference in New Issue
Block a user