How to reinstall all installed packages with zypper
You can reinstall all currently installed packages by this command:
zypper in -f $(rpm -q -a --qf '%{NAME} ')
Maybe this information will be useful.
I would add --no-recommends as option, to not install additional packages.
zypper in --no-recommends -f $(rpm -qa --qf '%{NAME} ')
also consider --download-in-advance , to avoid missing availability causing the install to interrupt.
zypper in --no-recommends --download-in-advance -f $(rpm -qa --qf '%{NAME} ')