Debian Codegraph @

upstream/mageia-cauldron/man8/dnf5-clean.8

raw
1 .\" Man page generated from reStructuredText.
2 .
3 .
4 .nr rst2man-indent-level 0
5 .
6 .de1 rstReportMargin
7 \\$1 \\n[an-margin]
8 level \\n[rst2man-indent-level]
9 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
10 -
11 \\n[rst2man-indent0]
12 \\n[rst2man-indent1]
13 \\n[rst2man-indent2]
14 ..
15 .de1 INDENT
16 .\" .rstReportMargin pre:
17 . RS \\$1
18 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
19 . nr rst2man-indent-level +1
20 .\" .rstReportMargin post:
21 ..
22 .de UNINDENT
23 . RE
24 .\" indent \\n[an-margin]
25 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
26 .nr rst2man-indent-level -1
27 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
28 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
29 ..
30 .TH "DNF5-CLEAN" "8" "May 10, 2026" "" "dnf5"
31 .SH NAME
32 dnf5-clean \- Clean Command
33 .SH SYNOPSIS
34 .sp
35 \fBdnf5 clean [options] <cache_types>...\fP
36 .SH DESCRIPTION
37 .sp
38 The \fBclean\fP command in \fBDNF5\fP is used to delete temporarily kept repository metadata
39 or marking the cache expired.
40 .sp
41 Arguments in \fBcache_types\fP specify which types of the cached data to cleanup:
42 .INDENT 0.0
43 .TP
44 .B \fIall\fP
45 .nf
46 Delete all temporary repository data from the system.
47 .fi
48 .sp
49 .TP
50 .B \fIpackages\fP
51 .nf
52 Delete any cached packages.
53 .fi
54 .sp
55 .TP
56 .B \fImetadata\fP
57 .nf
58 Delete repository metadata.
59 This will delete the files which \fBDNF5\fP uses to determine the remote availability of packages.
60 Using this option will make \fBDNF5\fP download all the metadata the next time it is run.
61 .fi
62 .sp
63 .TP
64 .B \fIdbcache\fP
65 .nf
66 Delete cache files generated from the repository metadata.
67 This forces \fBDNF5\fP to regenerate the cache files the next time it is run.
68 .fi
69 .sp
70 .TP
71 .B \fIexpire\-cache\fP
72 .nf
73 Mark the repository metadata expired.
74 This forces \fBDNF5\fP to check the validity of the cache the next time it is run.
75 .fi
76 .sp
77 .UNINDENT
78 .SH EXAMPLES
79 .INDENT 0.0
80 .TP
81 .B \fBdnf5 clean all\fP
82 .nf
83 Cleanup all repository cached data.
84 .fi
85 .sp
86 .TP
87 .B \fBdnf5 clean packages dbcache\fP
88 .nf
89 Cleanup all cached packages and dbcache metadata.
90 .fi
91 .sp
92 .UNINDENT
93 .SH AUTHOR
94 See AUTHORS.md in dnf5 source distribution.
95 .SH COPYRIGHT
96 Contributors to the dnf5 project.
97 .\" Generated by docutils manpage writer.
98 .