AI responds:
“Additionally, dnf clean all currently does not clean user-level cache when run without sudo. A feature request proposes that sudo dnf clean all should clean both user and system caches, but this is not yet implemented. For now, you may need to run ‘dnf clean all && sudo dnf clean all’ to clear both.”
The sudo dnf upgrade command will re-generate dbcache, metadata, etc. anyways. dnf upgrade downloads less data and runs faster if you haven’t cleaned up all the metadata information in the previous step.
When you want to update you system, just run sudo dnf upgrade with an optional --refresh. By default, do not use -y. You don’t know what you will be asked.
Do not use sudo dnf autoremove if you don’t understand what it’s trying to do. Sometimes it tries to remove important packages.