I don’t think so. distry-sync only looks for package versions as far as I know. It does not check the integrity of the installed packages.
It may, but it may not. It may because all packages should be updated, and so whatever files are missing will be replaced by newer ones. But any broken packages that are not touched by the upgrade will remain broken.
You can reinstall the packages by asking dnf
to reinstall the missing files. I.e., you don’t need to figure out what package the file came from explicitly to use dnf:
sudo dnf reinstall /usr/share/doc/source-highlight/Hello.java
Dependencies resolved.
========================================================================================================================================
Package Architecture Version Repository Size
========================================================================================================================================
Reinstalling:
source-highlight x86_64 3.1.9-11.fc35 fedora 691 k
Transaction Summary
========================================================================================================================================
Total download size: 691 k
Installed size: 3.1 M
Is this ok [y/N]:
This is because you deleted a lot of javascript files while manually deleting java files, as noted in your other thread.