How to Install and Use YouTube-DL on Ubuntu 18.04 | Update Youtube-DL |

Install and Use YouTube-DL on Ubuntu 18.04

Install YouTube-DL – A Command Line Video Download Tool for Linux

sudo snap install youtube-dl

Update youtbe-dl Snap package-

sudo snap refresh

Only lists the updates

snap refresh --list

Remove YouTube-DL

sudo snap remove youtube-dl



Check available video formats

youtube-dl -F "url"

Download Specific video format

youtube-dl -f 26(video id you get from the previous code) "url"

Download Specific best format

youtube-dl -f best "url"

Download Audio

youtube-dl --extract-audio --audio-format mp3 "url"

Download a video playlist

youtube-dl -o "%(playlist_index)s-%(title)s.%(ext)s" 'Paste your playlist link'

youtube-dl -f best -cio'%(autonumber)s-%(title)s.%(ext)s 'Paste your playlist link'