For openSUSE Tumbleweed run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Base:System/openSUSE_Tumbleweed/Base:System.repo
zypper refresh
zypper install dos2unix
For openSUSE Factory run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Base:System/openSUSE_Factory/Base:System.repo
zypper refresh
zypper install dos2unix
For assist repo checker run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Base:System/assist_repo_checker/Base:System.repo
zypper refresh
zypper install dos2unix
For 15.6 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Base:System/15.6/Base:System.repo
zypper refresh
zypper install dos2unix
For 15.5 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Base:System/15.5/Base:System.repo
zypper refresh
zypper install dos2unix