install youtube-dl ubuntu 18.04 code example
Example 1: install youtube-dl in ubuntu
$ sudo apt-get install youtube-dl
Example 2: youtube-dl ubuntu
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update && sudo apt-get install youtube-dlg