How to Download Youtube Video or Audio Tracks from the Linux Terminal
In the past I’ve published some articles regarding how to download music from youtube with the program YouTube to MP3, or videos with the programs xVideoServiceThief and flareget, they all accomplish the work with graphical interfaces, and this can be a great plus for many users, but others could prefer a simple command line program that can easily download videos and optionally extract the audio in a specific format: youtube-dl.
youtube-dl is a small command-line program to download videos from YouTube.com and a lot more sites. It requires the Python interpreter (2.6, 2.7, or 3.3+), and it is not platform specific. It should work in your Linux box, in Windows or in Mac OS X. It is released to the public domain, which means you can modify it, redistribute it or use it however you like.
sudo apt-get install youtube-dl
But these packages could not keep the pace with the changes/update made on the youtube website, so in this particular case I suggest to download the binary directly from the official website
sudo curl https://yt-dl.org/downloads/2014.01.03/youtube-dl -o /usr/local/bin/youtube-dl
If you do not have curl, you can alternatively use a recent wget:
sudo wget https://yt-dl.org/downloads/2014.01.03/youtube-dl -O /usr/local/bin/youtube-dl
As example today I could use the official Mint 16 version, that it’s based on a release of the 29 of august 2013:
mint-desktop ~ # apt-cache policy youtube-dl
Comments are closed.