Download Youtube Videos from Terminal in Fedora Linux

This is a quick tutorial to show you how to download youtube videos using Terminal in Fedora with a single command. We will use the tool called “Youtube-dl” which will help us download the video. Youtube-dl is a python script which also supports video downloading from metacafe, dailymotion etc. This tool sure can download videos from youtube but from other video sharing websites try it yourself. First, let’s install the youtube-dl. It is available in default Fedora repository.

As a root user or access type:

sudo yum install youtube-dl

After successfully installing youtube-dl, the syntax to download the video is:

youtube-dl youtube_link

I am going to download Creeping Death of Metallica. I will just copy the link, open the terminal and type:

youtube-dl http://www.youtube.com/watch?v=zlcx-ZKszXU

Some shells might have problem and won’t work without the code so add the quotes:

youtube-dl "youtube_link"

The video will be successfully downloaded in my HOME directory. You can download as many videos as you want at the same time using terminal tabs or multiple terminals.

Youtube downloader for terminal

 

0saves
Posted in Fedora, Linux, Linux Command | Tagged , | 4 Comments

4 Responses to Download Youtube Videos from Terminal in Fedora Linux

  1. Mark UNITED STATES Mozilla Firefox Linux says:

    Don’t you have to quote the URL? If you don’t (your example shows it unquoted above), the only result is “No match”, you need to do it:

    youtube-dl “http://www.youtube.com/watch?v=zlcx-ZKszXU”

    Or else the shell will misinterpret the meaning of the ?

    • Mark UNITED STATES Mozilla Firefox Linux says:

      Just an update, only some shells (like the T Shell I use) have a problem and need the quotes. It seems lots of users use bash and it seems to work with youtube-dl without the URL quoted. However using quotes will work on all shells.

  2. Amir UNITED STATES Google Chrome Mac OS says:

    it does’t work for me.
    I use Debian 6 Squeeze.

    logs :
    root@debian:~# youtube-dl http://www.youtube.com/watch?v=zlcx-ZKszXU
    [youtube] Setting language
    [youtube] zlcx-ZKszXU: Downloading video webpage
    [youtube] zlcx-ZKszXU: Downloading video info webpage
    [youtube] zlcx-ZKszXU: Extracting video information

    ERROR: unable to download video

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>