| 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-REMOVE" "8" "May 09, 2026" "" "dnf5" |
| 32 |
.SH NAME |
| 33 |
dnf5-remove \- Remove Command |
| 34 |
.SH SYNOPSIS |
| 35 |
.sp |
| 36 |
\fBdnf5 remove [options] <package\-spec\-NF>|@<group\-spec>|@<environment\-spec>...\fP |
| 37 |
.sp |
| 38 |
\fBdnf5 remove \-\-oldinstallonly [\-\-limit=<LIMIT>] [<package\-spec\-NF>...]\fP |
| 39 |
.SH DESCRIPTION |
| 40 |
.sp |
| 41 |
The \fBremove\fP command in \fBDNF5\fP is used for removing installed packages, groups or |
| 42 |
environments from the system. |
| 43 |
.sp |
| 44 |
If you want to keep the dependencies that were installed together with the given package, |
| 45 |
set the \fBclean_requirements_on_remove\fP configuration option to \fBFalse\fP\&. |
| 46 |
.sp |
| 47 |
When the \fB\-\-oldinstallonly\fP option is used, the command removes old installonly packages |
| 48 |
(e.g. kernels) that exceed the configured \fBinstallonly_limit\fP\&. The currently running kernel |
| 49 |
is never removed. If package specs are provided, only matching installonly packages are |
| 50 |
considered for removal. |
| 51 |
.SH OPTIONS |
| 52 |
.INDENT 0.0 |
| 53 |
.TP |
| 54 |
.B \fB\-\-installed\-from\-repo=REPO_ID,...\fP |
| 55 |
.nf |
| 56 |
Filters installed packages by the ID of the repository they were installed from. |
| 57 |
.fi |
| 58 |
.sp |
| 59 |
.UNINDENT |
| 60 |
.INDENT 0.0 |
| 61 |
.TP |
| 62 |
.B \fB\-\-no\-autoremove\fP |
| 63 |
.nf |
| 64 |
Disable removal of dependencies that are no longer used. |
| 65 |
.fi |
| 66 |
.sp |
| 67 |
.TP |
| 68 |
.B \fB\-\-oldinstallonly\fP |
| 69 |
.nf |
| 70 |
Remove old installonly packages that exceed the \fBinstallonly_limit\fP configuration value. |
| 71 |
When used without package specs, all installonly package types are considered. |
| 72 |
The currently running kernel is automatically skipped. |
| 73 |
.fi |
| 74 |
.sp |
| 75 |
.TP |
| 76 |
.B \fB\-\-limit=<LIMIT>\fP |
| 77 |
.nf |
| 78 |
Override the \fBinstallonly_limit\fP configuration value. Must be greater than or equal to 1 |
| 79 |
to keep at least the newest installed version. Can only be used with \fB\-\-oldinstallonly\fP\&. |
| 80 |
.fi |
| 81 |
.sp |
| 82 |
.UNINDENT |
| 83 |
.INDENT 0.0 |
| 84 |
.TP |
| 85 |
.B \fB\-\-offline\fP |
| 86 |
.nf |
| 87 |
Store the transaction to be performed offline. See offline command \%<#\:offline-command-ref-label>, \fBdnf5\-offline(8)\fP\&. |
| 88 |
.fi |
| 89 |
.sp |
| 90 |
.TP |
| 91 |
.B \fB\-\-store=PATH\fP |
| 92 |
.nf |
| 93 |
Store the current transaction in a directory at the specified \fBPATH\fP instead of running it. |
| 94 |
The stored transaction can be performed by the replay command \%<#\:replay-command-ref-label>, \fBdnf5\-replay(8)\fP\&. |
| 95 |
Note that repository ids in the stored transaction are mangled to \fB@stored_transaction(repo_id)\fP this is required |
| 96 |
because during replaying the stored repositories are recreated and they might collide with already present repositories |
| 97 |
(this doesn\(aqt apply to the special @System repository). |
| 98 |
.fi |
| 99 |
.sp |
| 100 |
.UNINDENT |
| 101 |
.SH EXAMPLES |
| 102 |
.INDENT 0.0 |
| 103 |
.TP |
| 104 |
.B \fBdnf5 remove tito\fP |
| 105 |
.nf |
| 106 |
Remove the \fBtito\fP package. |
| 107 |
.fi |
| 108 |
.sp |
| 109 |
.TP |
| 110 |
.B \fBdnf5 remove \-\-oldinstallonly\fP |
| 111 |
.nf |
| 112 |
Remove all old installonly packages exceeding the configured \fBinstallonly_limit\fP\&. |
| 113 |
.fi |
| 114 |
.sp |
| 115 |
.TP |
| 116 |
.B \fBdnf5 remove \-\-oldinstallonly kernel\fP |
| 117 |
.nf |
| 118 |
Remove old kernel packages exceeding the configured \fBinstallonly_limit\fP\&. |
| 119 |
.fi |
| 120 |
.sp |
| 121 |
.TP |
| 122 |
.B \fBdnf5 remove \-\-oldinstallonly \-\-limit=2\fP |
| 123 |
.nf |
| 124 |
Remove old installonly packages, keeping only the 2 newest versions of each. |
| 125 |
.fi |
| 126 |
.sp |
| 127 |
.UNINDENT |
| 128 |
.SH SEE ALSO |
| 129 |
.INDENT 0.0 |
| 130 |
.INDENT 3.5 |
| 131 |
.nf |
| 132 |
\fBdnf5\-specs(7)\fP, Patterns specification \%<#\:specs-misc-ref-label> |
| 133 |
.fi |
| 134 |
.sp |
| 135 |
.UNINDENT |
| 136 |
.UNINDENT |
| 137 |
.SH Author |
| 138 |
See AUTHORS.md in dnf5 source distribution. |
| 139 |
.SH Copyright |
| 140 |
Contributors to the dnf5 project. |
| 141 |
.\" End of generated man page. |