mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 13:56:52 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/linux/dnf-clean
Normal file
29
tldr/linux/dnf-clean
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dnf clean
|
||||
|
||||
> Perform cleanup of temporary files kept for Red Hat-based repositories.
|
||||
> More information: <https://dnf.readthedocs.io/en/latest/command_ref.html#clean-command>.
|
||||
|
||||
- Remove cache files generated from the repository metadata:
|
||||
|
||||
`dnf clean dbcache`
|
||||
|
||||
- Mark the repository metadata as expired:
|
||||
|
||||
`dnf clean expire-cache`
|
||||
|
||||
- Remove repository metadata:
|
||||
|
||||
`dnf clean metadata`
|
||||
|
||||
- Remove any cached packages from the system:
|
||||
|
||||
`dnf clean packages`
|
||||
|
||||
- Clean up all DNF repository specific metadata and cached files (all of the above):
|
||||
|
||||
`dnf clean all`
|
||||
Reference in New Issue
Block a user