.\" Man page generated from reStructuredText .\" by the Docutils 0.23 manpage writer. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "DNF5-AUTOREMOVE" "8" "Sep 06, 2026" "" "dnf5" .SH NAME dnf5-autoremove \- Autoremove Command .SH SYNOPSIS .sp \fBdnf5 autoremove\fP .SH DESCRIPTION .sp The \fBautoremove\fP command in \fBDNF5\fP is used for removing unneeded packages from the system. .sp Unneeded packages are all \(dqleaf\(dq packages that were originally installed as dependencies of user\-installed packages, but which are no longer required by any such package. .sp Installonly packages (e.g. kernels) are never automatically removed by this command even if they were installed as dependencies. .SH OPTIONS .INDENT 0.0 .TP .B \fB\-\-offline\fP .nf Store the transaction to be performed offline. See offline command \%<#\:offline-command-ref-label>, \fBdnf5\-offline(8)\fP\&. .fi .sp .UNINDENT .INDENT 0.0 .TP .B \fB\-\-transient\fP Applicable only on bootc (bootable containers) systems. Perform transactions using a transient overlay which will be lost on the next reboot. See also the persistence \%<#\:persistence-options-label> configuration option. .TP .B \fB\-\-store=PATH\fP .nf Store the current transaction in a directory at the specified \fBPATH\fP instead of running it. The stored transaction can be performed by the replay command \%<#\:replay-command-ref-label>, \fBdnf5\-replay(8)\fP\&. Note that repository ids in the stored transaction are mangled to \fB@stored_transaction(repo_id)\fP this is required because during replaying the stored repositories are recreated and they might collide with already present repositories (this doesn\(aqt apply to the special @System repository). .fi .sp .UNINDENT .SH Author See AUTHORS.md in dnf5 source distribution. .SH Copyright Contributors to the dnf5 project. .\" End of generated man page.