snippetbashTip
dnf clean — Perform cleanup of temporary files kept for Red Hat-based repositories. More information: <https://d
Viewed 0 times
commandcleanupfilestemporarydnf cleanperformclikept
linux
Problem
How to use the
dnf clean command: Perform cleanup of temporary files kept for Red Hat-based repositories. More information: <https://dnf.readthedocs.io/en/latest/command_ref.html#clean-command>.Solution
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 dbcacheMark the repository metadata as expired:
dnf clean expire-cacheRemove repository metadata:
dnf clean metadataRemove any cached packages from the system:
dnf clean packagesClean up all DNF repository specific metadata and cached files (all of the above):
dnf clean allCode Snippets
Remove cache files generated from the repository metadata
dnf clean dbcacheMark the repository metadata as expired
dnf clean expire-cacheRemove repository metadata
dnf clean metadataRemove any cached packages from the system
dnf clean packagesClean up all DNF repository specific metadata and cached files (all of the above)
dnf clean allContext
tldr-pages: linux/dnf clean
Revisions (0)
No revisions yet.