How to install Youtube-dl on Linux and MacOS

- Advertisment -
- Advertisement -

The Youtube-dl is a simple command line tool to download YouTube videos directly on the Ubuntu or other Linux system using command terminal.  The Youtube dl requires the Python interpreter (2.6, 2.7, or 3.2+), and it is not platforming specific which can be installed easily on any Linux distros. The best part is it also available in an executable form for Windows platform that includes Python plus Mac OS X is also supported. The YouTube dl is an opensource tool can be modified and distributed free of cost. In addition to Youtube, it also supports the downloading of videos from other websites too.

Here in this tutorial, we will see how to install Youtube-dl on Mac and Linux OS such as Ubuntu, Linux Mint, Centos…

Install YouTube-DL on Ubuntu 18.04 or Linux Mint

  1. Go to Ubuntu Linux
  2. Launch the Command terminal; the shortcut command for that CTRL+ALT+T.
  3. In the command terminal, type:
    • sudo apt-get install youtube-dlinstall youtube dll on Ubuntu Linux
  4. It will ask for permission to install. Type ‘Y‘ and press the Enter button.
  5. The downloading and installation process will be started.
  6. In case the above command didn’t work for you then use this one:
    • sudo wget -O /usr/local/bin/youtube-dl
  7. The above command directly downloads the YouTube-dl on your Linux. After the run the below command to change the permission.
    • sudo chmod a+rx /usr/local/bin/youtube-dl

Install YouTube DL on Redhat/CentOS or other Redhat based Linux distros…

  1. Again go to your Redhat/Centos/Fedora or other same based OS.
  2. Open the Command Terminal
  3. First, try the single command to install the YouTube dl
    • yum install youtube-dl
  4. If the above command didn’t work then use one of the below commands:
    • sudo curl -L -o /usr/local/bin/youtube-dl
      sudo wget -O /usr/local/bin/youtube-dl
  5. After the above command execute this one to set the permissions.
    • sudo chmod a+rx /usr/local/bin/youtube-dl

To install the Youtube-dl on MAC OS just use the below command:

The command uses the curl but you can use the wget as well; as shown above.

sudo curl -L -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

or if you have brew installed on your Mac OS the use this one

brew install youtube-dl


Or with MacPorts:

sudo port install youtube-dl

After installation in case the YouTube dl not working or giving some error in downloading the Youtube videos then execute commands given below:

  • sudo add-apt-repository ppa:heyarje/libav-11
  • sudo apt-get update
  • sudo apt-get install libav-tools

If the last command didn’t work in the Ubuntu 18.04, don’t worry. Just run first tow commands and after you will able to download youtube videos using the command line tool Youtube dl.

To use the Youtube dl 

Type the youtube-dl followed by the yotubelink

 Youtube DL Example:


Downloading Youtube-dl videos

Other Resources:


Rajkumar Maurya
Rajkumar Maurya is the H2S Media tech expert. He’s always been passionate about technology and has been writing on the subject since 2014. He has extensive knowledge of all kinds of technology, from consumer-tech to enterprise solutions. You can contact the author at--


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Latest Posts

6 Best disk space analyzer tools for Windows 10

List of best Storage or disk space usage analyzer software for Windows 10/7 to help in disk analyzation, so...

Electronics Arts “Apex Legends” game is coming to Smartphones

The news has been aired all the way among the mobile game lovers that the PC title from Electronics...

Microsoft Office app brings all the major Office apps and other services under one roof

On installing Microsoft Office on our computers, we get access to all the office applications on your computer. However,...

Half-Life Games are about to become Free to Play on Steam

According to the latest announcement from Valve, all the games under the Half-Life franchises are going to be free...
- Advertisement -

KDM launches dual charging 10,000 mAh Power Bank

KDM that deals in audio products recently has announced its budget-priced 10,000 mAh Power bank names as KDM 10X...

How to mount encrypted VeraCrypt or other volumes on an Android device

If you want to encrypt everything on your computer there are a number of encrypting solutions are available out...

- Advertisment -
- Advertisement -

You might also likeRELATED
Recommended to you