For SLE 15 SP5 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/network:utilities/SLE_15_SP5/network:utilities.repo
zypper refresh
zypper install youtube-dl
For SLE 15 SP4 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/network:utilities/SLE_15_SP4/network:utilities.repo
zypper refresh
zypper install youtube-dl
For SLE 15 SP3 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/network:utilities/SLE_15_SP3/network:utilities.repo
zypper refresh
zypper install youtube-dl
For SLE 15 SP2 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/network:utilities/SLE_15_SP2/network:utilities.repo
zypper refresh
zypper install youtube-dl
For SLE 15 SP1 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/network:utilities/SLE_15_SP1/network:utilities.repo
zypper refresh
zypper install youtube-dl
For SLE 15 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/network:utilities/SLE_15/network:utilities.repo
zypper refresh
zypper install youtube-dl
For SLE 12 SP5 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/network:utilities/SLE_12_SP5/network:utilities.repo
zypper refresh
zypper install youtube-dl