Package belonging to a comps group cannot be marked as dependency #1976
Labels
Priority: MEDIUM
Triaged
Someone on the DNF 5 team has read the issue and determined the next steps to take
If a package belongs to a comps group, then it cannot be marked as a "dependency" using
dnf mark
. It can only be marked as "user" or "group".For example,
cmake
is an optional package in thec-development
group:But I have installed it manually and so it is marked as user-installed:
$ dnf rq --installed --qf '%{reason}\n' cmake User
First bug: Trying to mark it as a group package doesn't work. Dnf claims it is changing the reason from User to Group, but the change does not happen:
Second bug: Trying to mark the package as a dependency (so that it will be autoremoved if unneeded by another package) also does not work. Instead, trying to do this changes its reason to "Group":
So, to summarize, the
dnf mark group
command does not work for user-installed packages that are in a comps group, anddnf mark dependency
actually marks such packages as group-installed. There is no way to mark such a package as a dependency.I am using Fedora 41 and dnf 5.2.8.1:
The text was updated successfully, but these errors were encountered: