For openSUSE Factory standard run the following as root:
zypper addrepo https://download.opensuse.org/repositories/KDE:Applications/openSUSE_Factory_standard/KDE:Applications.repo
zypper refresh
zypper install kompare
For openSUSE Factory PowerPC run the following as root:
zypper addrepo https://download.opensuse.org/repositories/KDE:Applications/openSUSE_Factory_PowerPC/KDE:Applications.repo
zypper refresh
zypper install kompare
For KDE Frameworks5 openSUSE Tumbleweed run the following as root:
zypper addrepo https://download.opensuse.org/repositories/KDE:Applications/KDE_Frameworks5_openSUSE_Tumbleweed/KDE:Applications.repo
zypper refresh
zypper install kompare