Pages

Thursday, September 22, 2011

Download YouTube Videos in Ubuntu 11.04

More often we need to download videos from YouTube and similar other sites. Ubuntu provides a command-line feature for downloading videos from YouTube.

For this you need to install the package "youtube-dl". This can be done by using the terminal or the synaptic package manager. For installing the package using the terminal, use the command:
      sudo apt-get install youtube-dl
You can install it through the synaptic package manager by searching the package youtube-dl in it.


Make sure you have updated the package after you have installed it. For updating the package, use the command
    youtube-dl  --update
If you get permission error, change the permissions of youtube-dl in /usr/bin using the command:
   chmod 777 youtube-dl
For downloading the YouTube video, open the terminal (press Ctrl+Alt+T) and type the command:
   youtube-dl "URL"
Open the relevant video in the browser and copy the URL from there.

After the download is completed you can find the video in your HOME folder.

Share and learn. If you have some problems related to this post, post it here.