Youtube-dl is the most important and useful open-source command-line tool for Linux system to download videos from websites like Youtube, Dailymotion, Facebook, Google video, yahoo and many similar sites. It developed on python based library, so python is essential to install or available to use Youtube-dl software.

The Youtube-dl application supports many operating systems to download web video, including Windows, Linux, and Mac.

Youtube-dl also supports resuming features for video download, when the download gets interrupted, It will again start from resuming point.

In this tutorial, we will learn how to install youtube-dl and how to use it on Ubuntu 16.04, Ubuntu 17.04, Ubuntu 18.04 and Ubuntu 19.04.


A server or system running Ubuntu Operating system (Version 16.04 – 19.04)
An user with sudo privileges

System Update

It is general to update and upgrade system packages before installing a new package into the system. To update and upgrade your Ubuntu system use below commands:

When your system gets updated, restart your system to apply all updated changes.

Install Youtube-dl on Ubuntu OS

Youtube-dl is not available with Ubuntu 16.04 and Ubuntu 17.04 repository. So you can install directly in these Ubuntu version system.

Here we are going to explain the very simplest way to install youtube-dl in any Ubuntu system.

To install youtube-dl we need curl package, So first install curl into your system using the following command:

After installing curl, download the youtube-dl into your system using curl command:

Now, you should change the permission for this downloaded binary file using the following command:

Now, youtube-dl is installed and working on your system.

Youtube-dl uses

Now, when youtube-dl is installed and working in your system, you can use the following command to check all available options with youtube-dl

Youtube-dl has the capabilities to support more video formats such as MP4, 3GP, WebM, and FLV.

You can check all the available video format for any video by using below command:

You will get output like below where all the available format for this video is listed:

Now, you can choose the format to download the video using the flag –f like below:

The above command will download the video in MP4 format at 640×360 resolution:

You can download youtube video in MP3 audio format also using the following command:

You can also download the all video from specific youtube channel using channel’s url as show below:

Youtube-dl is also working good with a proxy network, so if you are using the proxy network, you can use youtube-dl as shown below:

You can also download multiple videos using youtube-dl, you can create a text file with the list of video and use the following command:

Youtube-dl GUI Installation

There is another tool called youtube-dlg, which is the graphical tool for youtube-dl. It is the best choice if you are looking for a graphical video download tool. It is also a free, open-source tool written in wxPython.

This tool’s repository not included in the Ubuntu system, so if you want to install youtube-dlg first, you need to configure the repository.

You can add youtube-dlg repository into your system using the following commands:

Now, after updating the repository, you can install youtube-dlg by apt-get command, as shown below:

After installing the youtube-dl GUI tool into your system, you can check like below:

Now you can install youtube-dl or youtube-dlg any application in your system or server which will help you to download videos from various sites.


Now, you have learned to install youtube-dl successfully into your system and uses of this tool. How you are ready to download any video from youtube or youtube-dl supported sites.


If You Like What We Do Here On LinuxConcept, You Should Consider:

Stay Connected to: Twitter | Facebook

Subscribe to our email updates: Sign Up Now


We are thankful for your support.

Follow me


I am Satish Kumar, Founder of LinuxConcept. Linux and F.O.S.S enthusiast, love to work on open source platform and technologies.
Follow me