How to Download Videos in Linux Command Line

“youtube-dl” is a python based script which is used to download the Videos from any of the URL’s:


1] How to Install the required “youtube-dl” package in the Linux Server:

To install it right away for all UNIX users (Linux, OS X, etc.), type:

[root@quickfixlinux ~] # curl -L -o /usr/local/bin/youtube-dl

[root@quickfixlinux ~] # chmod a+rx /usr/local/bin/youtube-dl

If you do not have curl, you can alternatively use a recent wget:

[root@quickfixlinux ~]# wget -O /usr/local/bin/youtube-dl

[root@quickfixlinux ~]# sudo chmod a+rx /usr/local/bin/youtube-dl  

NOTE: If you don’t have “curl” or “wget” package installed, you can install it using the “yum” command to get the package.

2]How to check the command has been installed: 

[root@quickfixlinux ~]# updatedb

[root@quickfixlinux ~]# locate youtube

3] How to use the “youtube-dl” command to download the videos:

[root@quickfixlinux ~]# youtube-dl ‘’
[youtube] JPd0Av4OlGg: Downloading webpage
[youtube] JPd0Av4OlGg: Downloading video info webpage
[youtube] JPd0Av4OlGg: Extracting video information
WARNING: unable to extract uploader nickname
[youtube] JPd0Av4OlGg: Downloading MPD manifest
[download] Destination: Red Hat Enterprise Linux 7 – Redefining the Enterprise OS-JPd0Av4OlGg.mp4
[download] 59.4% of 25.25MiB at 280.06KiB/s ETA 00:37

4] To Download a list of Videos :

[root@quickfixlinux ~]# youtube-dl -a “Download_link_youtube.txt”

5] To Get more available options:

[root@quickfixlinux ~]# youtube-dl –h


You may also like...

Leave a Reply