26

Ubuntu 16.04: Verify latest youtube-dl version:

$ sudo apt-get install youtube-dl
youtube-dl is already the newest version (2016.02.22-1).
0 upgraded, 0 newly installed, 0 to remove and 137 not upgraded.

Why does video's URL fail?

$ youtube-dl -F  https://www.youtube.com/watch?v=ZFzSCJHp0lo
[youtube] ZFzSCJHp0lo: Downloading webpage
[youtube] ZFzSCJHp0lo: Downloading video info webpage
WARNING: Unable to extract video title
ERROR: This video is unavailable.

Python Version

$ readlink -f $(which python) | xargs -I % sh -c 'echo -n "%: "; % -V'
/usr/bin/python2.7: Python 2.7.12
pomsky
  • 70,557
gatorback
  • 6,523

1 Answers1

36

See youtube-dl: Download Page.

To install it right away for all UNIX users (Linux, OS X, etc.), type:

sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl 

If you do not have curl, you can alternatively use a recent wget:

sudo wget http://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

You can also use pip:

sudo pip install --upgrade youtube_dl

The above steps will install latest version of youtube-dl that can be checked using youtube-dl --version. As of now the output of youtube-dl --version is:

2020.01.01
Kulfy
  • 18,154
Wiley
  • 469