Downloading youtube video from commandline

youtube-dl is a python package that allow you to download videos from youtube.

You can install it on Ubuntu with command

On CentOS

To download a video, use

Replace youtube video URL with URL of the video you need to download.

To see all available formats for download, run