When I did a sudo dnf upgrade, the process freezed at Removing old breeze-icon-theme.
After half an hour, I killed the process and rebooted, and ran sudo dnf remove --duplicates, and it stuck again.
I tried erasing it directly with sudo rpm --erase but yielded the same result.
Here is the terminal output:
[ Irrelevant lines omitted ]
Cleanup : elfutils-default-yama-scope-0.186-1.fc35.noarch 105/376
Obsoleting : breeze-icon-theme-5.85.0-1.fc35.noarch 106/376
warning: file /usr/share/icons/breeze/apps/48/itinerary.svg: remove failed: No such file or directory
warning: file /usr/share/icons/breeze/actions/16/media-write-cd.svg: remove failed: No such file or directory
warning: file /usr/share/icons/breeze-dark/apps/48/itinerary.svg: remove failed: No such file or directory
warning: file /usr/share/icons/breeze-dark/actions/16/media-write-cd.svg: remove failed: No such file or directory
Icon themes sometimes contain lots of files, and so they do take time. You should just let dnf run and finish it’s transaction. By interrupting it, you’ve not put your system in an inconsistent state . Best to re-run dnf remove breeze-icon-theme and let it finish.
breeze-icon-theme has ~52000 files and the package manager needs to do quite a bit of computation to correctly install or remove all of them (because they do more than just put files in place, they also have to updated the package database etc.,):