What command can I use to clear the
yum cache on a Fedora 23 system?
I have tried
yum clean all, but it defaults to:
Redirecting to '/usr/bin/dnf clean all' (see 'man yum2dnf')
with "0 files removed"
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
According to the documentation for
Performs cleanup of temporary files kept for repositories. This includes any such data left behind from disabled or removed repositories as well as for different distribution release versions.
dnf clean dbcache
Removes cache files generated from the repository metadata. This forces DNF to regenerate the cache files the next time it is run.
dnf clean expire-cache
Marks the repository metadata expired. DNF will re-validate the cache for each repo the next time it is used.
dnf clean metadata
Removes repository metadata. Those are the files which DNF uses to determine the remote availability of packages. Using this option will make DNF download all the metadata the next time it is run.
dnf clean packages
Removes any cached packages from the system.
dnf clean all
Does all of the above.
dnf clean all did not clean it up, then it's not part of the dnf cache. The dnf cache lives in
/var/cache/yum may be leftover from a previous version of Fedora (prior to the upgrade from yum to dnf), and you can almost certainly remove the files in that directory safely.