Download Youtube video – CentOS
At some time or another everyone has wanted to download Youtube video to have locally. From Linux (or Windows or Mac) this is a fairly simple task thanks to youtube-dl !! Easy installation, fast, flexible
Installation of youtube-dl
To install the latest youtube-dl, check the latest url from their site HERE –
wget https://yt-dl.org/latest/youtube-dl -O /usr/local/bin/youtube-dl
Make the program executable like this –
chmod 755 /usr/local/bin/youtube-dl
And that really is it !! youtube-dl is also available for Mac and Windows so check the website link above to download it.
Using youtube-dl to download videos and playlists from Youtube
To download video from Youtube (Single) :
youtube-dl "https://www.youtube.com/watch?v=MFxlwVhwayg"
To download a playlist with multiple videos just put in the playlist url :
youtube-dl "https://www.youtube.com/watch?v=lG79da7Uxyk&list=RDlG79da7Uxyk"
There are many options to name your files as you want, choose which quality video you wish to download etc etc so check out the help page here –
youtube-dl -h
Every now and then if you experience any issues with downloading videos you can update youtube-dl to the latest version –
youtube-dl -U
Just for Youtube downloads?? Well NO. youtube-dl can download videos from a LARGE number of other sites as well! You can see the ever expanding list of sites it supports HERE