LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

dnf-clean

remove cached DNF repository data

TLDR

Remove cache files
$ dnf clean dbcache
copy
Mark metadata as expired
$ dnf clean expire-cache
copy
Remove repository metadata
$ dnf clean metadata
copy
Remove cached packages
$ dnf clean packages
copy
Clean all DNF cache
$ dnf clean all
copy

SYNOPSIS

dnf clean type

DESCRIPTION

dnf clean removes temporary files cached by DNF for repositories. This includes metadata, packages, and database files.Useful for freeing disk space or forcing DNF to refresh metadata from repositories.

PARAMETERS

dbcache

Remove database cache files
expire-cache
Mark metadata as expired
metadata
Remove repository metadata
packages
Remove cached packages
all
Clean everything (all of the above)

CAVEATS

Cleaning cache means DNF must re-download metadata on next use. Cached packages are in /var/cache/dnf. "all" is the most thorough option.

SEE ALSO

dnf(8), yum(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid