• How to install Youtube-dl on Linux and MacOS

    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 https://yt-dl.org/downloads/latest/youtube-dl -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 https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
        or 
        sudo wget https://yt-dl.org/downloads/latest/youtube-dl -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 https://yt-dl.org/downloads/latest/youtube-dl -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:

    youtube-dl https://www.youtube.com/watch?v=mLHhux9Da9M

    Downloading Youtube-dl videos

    Other Resources:

     

    Leave a Reply

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