Log on to your account via SSH. Use the following commands:

if ! grep -w "PATH=\$HOME/bin" ~/.bashrc ; then mkdir -p ~/bin && echo "PATH=\$HOME/bin:\$PATH" \
>> ~/.bashrc && source ~/.bashrc ; fi
wget --no-check-certificate -O ~/bin/youtube-dl https://yt-dl.org/downloads/latest/youtube-dl
chmod 755 ~/bin/youtube-dl

Youtube-dl has been installed, use the following command to get help:

youtube-dl --help
Was this answer helpful? 173 Users Found This Useful (188 Votes)