[packaging] why do file conflicts happen between different versions of the same package?

,

I’m getting the following dnf5 error:

Running transaction
Transaction failed: Rpm transaction failed.
  - file /usr/share/icons/Fluent-dark/16/actions from install of fluent-icon-theme-20250821-2.fc42.noarch conflicts with file from package fluent-icon-theme-20250226-2.fc42.noarch
  - file /usr/share/icons/Fluent-dark/16/devices from install of fluent-icon-theme-20250821-2.fc42.noarch conflicts with file from package fluent-icon-theme-20250226-2.fc42.noarch
  - file /usr/share/icons/Fluent-dark/16/places from install of fluent-icon-theme-20250821-2.fc42.noarch conflicts with file from package fluent-icon-theme-20250226-2.fc42.noarch
  - file /usr/share/icons/Fluent-dark/22/actions from install of fluent-icon-theme-20250821-2.fc42.noarch conflicts with file from package fluent-icon-theme-20250226-2.fc42.noarch
  - file /usr/share/icons/Fluent-dark/22/devices from install of fluent-icon-theme-20250821-2.fc42.noarch conflicts with file from package fluent-icon-theme-20250226-2.fc42.noarch
  - file /usr/share/icons/Fluent-dark/22/places from install of fluent-icon-theme-20250821-2.fc42.noarch conflicts with file from package fluent-icon-theme-20250226-2.fc42.noarch
  - file /usr/share/icons/Fluent-dark/24/actions from install of fluent-icon-theme-20250821-2.fc42.noarch conflicts with file from package fluent-icon-theme-20250226-2.fc42.noarch

...

  - file /usr/share/icons/Fluent/symbolic from install of fluent-icon-theme-20250821-2.fc42.noarch conflicts with file from package fluent-icon-theme-20250226-2.fc42.noarch

We packaged fluent-icon-theme in Terra: packages/anda/themes/fluent-icon-theme/fluent-icon-theme.spec at frawhide · terrapkg/packages · GitHub

I’m personally really confused by this, because this is an upgrade:

 fluent-icon-theme                                           noarch  20250821-2.fc42                                              terra                                                           27.7 MiB
   replacing fluent-icon-theme                               noarch  20250226-2.fc42                                              terra                                                           27.9 MiB

So why would these file conflicts occur if they’re getting overwritten anyway? This feels like nonsense…

1 Like