rpm-software-management / dnf5

Next-generation RPM package management system
Other
239 stars 79 forks source link

compatibility issue: "dnf5 group install" does not understand group names #1599

Open gmankab opened 2 months ago

gmankab commented 2 months ago

working commands:

dnf4 install @gnome-desktop
dnf4 install @kde-desktop
dnf5 install @gnome-desktop
dnf5 install @kde-desktop
dnf4 install @gnome
dnf4 install @kde

not working commands:

dnf5 install @gnome
dnf5 install @kde

can you please make this commands working to save compatibility with dnf4

ppisar commented 2 months ago

Can you tell me what repository defines that non-working "gnome" or "kde" group?

kontura commented 2 months ago

I believe they are from the fedora repository but the KDE or GNOME are names for groups with id gnome-desktop and kde-desktop.

dnf5 currently doesn't search through the names when matching group specs. It could be configured by: void set_group_with_name(bool group_with_name) plus probably case sensitivity.

However I am not sure if this is not on purpose, maybe @m-blaha could know?

ppisar commented 2 months ago

I see. DNF5 does not list false groups. (One needs to pass --hidden option).

I think DNF5 does not searches groups by a name because a name is not an identifier. The name is localized and theoretically you can have multiple groups with the name name. It's akin to a summary of a package. We also do not install package by a summary.

I would say it's a feature.

gmankab commented 2 months ago

Can you tell me what repository defines that non-working "gnome" or "kde" group?

fedora 40 default repo

ppisar commented 4 weeks ago

I will keep this ticket open as a request for enhancement. But I personally consider this request unreasonable.

ppisar commented 3 weeks ago

We tested current behavior and it is following:

DNF4 recognizes identifiers, English names irrespective of a locale, and current-locale translations of the names. DNF5 only recognizes identifiers.

DNF team discussed this issue. The team recognizes that a user experience with DNF5 is worse, yet expresses it's dismay with using the unstable and locale-dependent names.

These proposal were mentioned: