Install youtube-dl latest release on linux from source

curl https://yt-dl.org/latest/youtube-dl -o /usr/local/bin/youtube-dl
OR
wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl

chmod a+rx /usr/local/bin/youtube-dl

To upgrade;

youtube-dl -U