Debian Codegraph @

upstream/debian-unstable/man8/dnf5-clean.8

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