Scroll to navigation

DNF5-CLEAN(8) dnf5 DNF5-CLEAN(8)

NAME

dnf5-clean - Clean Command

SYNOPSIS

dnf5 clean [options] <cache_types>...

DESCRIPTION

The clean command in DNF5 is used to delete temporarily kept repository metadata or marking the cache expired.

Arguments in cache_types specify which types of the cached data to cleanup:

Delete all temporary repository data from the system.

Delete any cached packages.

Delete repository metadata.
This will delete the files which DNF5 uses to determine the remote availability of packages.
Using this option will make DNF5 download all the metadata the next time it is run.

Delete cache files generated from the repository metadata.
This forces DNF5 to regenerate the cache files the next time it is run.

Mark the repository metadata expired.
This forces DNF5 to check the validity of the cache the next time it is run.


EXAMPLES

Cleanup all repository cached data.

Cleanup all cached packages and dbcache metadata.


AUTHOR

See AUTHORS.md in dnf5 source distribution.

COPYRIGHT

Contributors to the dnf5 project.

September 23, 2024