Skip to content

dnf needs-restarting | '-u' option declared as unknown #597

@Ricky-Tigg

Description

@Ricky-Tigg
  • tested on OS: Fedora; Rawhide branch
  • dnf-plugins-core: v.: 4.10.1

Reference

NEEDS-RESTARTING(1) manual | Sep 19, 2025

NAME
 needs-restarting - redirecting to DNF needs-restarting Plugin

SYNOPSIS
 dnf needs-restarting [-u] [-r] [-s]

OPTIONS
 All general DNF options are accepted, see Options in dnf(8) for details.

Description

Hello. All options of that manual are valid for DNF v. 4 but not all are valid for DNF v. 5, which respectively currently matches dnf4 and dnf5.

For someone who is not part of the project, these are, at best, the changes that can be observed as having been introduced.

$ ls -l /usr/bin/dnf
[...] /usr/bin/dnf -> dnf5
$ ls -l /usr/bin/dnf4
[...] /usr/bin/dnf4 -> dnf-3

Changes that are now source of the following issues.

To reproduce

$ dnf needs-restarting -u
Unknown argument "-u" for command "needs-restarting". Add "--help" [...]

Since there could be multiple causes for this message, which anyway does indicate an issue, it is up to you, as the authors of these changes, to determine the cause.

man 8 dnf

Which changes also cause to no longer open the manual for DNF4(8) but instead DNF5(8) in which the above issue occurs.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions