In this tutorial, we are going to see the method to Install youtube-dl on Termux Terminal Emulator for Android.

Already we Publish the Method to Install youtube-dl on Ubuntu - youtube-dl Software Helps us to Download the Videos & Audios from Youtube in Different Formats.

Download Youtube videos on your Android device by using Termux.it's very to install & download the youtube videos & audio From the Command Line with youtube-dl.

Table of Contents

  1. Package Requirements
  2. Install youtube-dl
  3. Install via Shell Script
  4. Install via cURL
  5. How to use?
  6. Uninstall

Requirements

pkg install ffmpeg

Install youtube-dl on Termux

  • Open the termux APP
  • Install youtube-dl via cURL
curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /data/data/com.termux/files/usr/bin/youtube-dl
  • Give Permission to Execute the Script
chmod a+rx /data/data/com.termux/files/usr/bin/youtube-dl
  • Verify your Installation
which youtube-dl

Install youtube-dl on Termux

  • Learn More about youtube-dl Command Line tool
youtube-dl --help
  • Update Youtube-dl
chmod a+rx /data/data/com.termux/files/usr/bin/youtube-dl
youtube-dl -U

Shell Script to Download youtube-dl

Bash Shell Script to youtube-dl on Termux Terminal Emulator

Download via cURL

Download and Install via cURL Command

curl -sL https://gist.githubusercontent.com/mskian/6ea9c2b32d5f41867e7cafc88d1b26d5/raw/youtube-dl.sh | bash

Usage

Youtube Video and Audio Downloader for Android.

Download youtube videos

youtube-dl YOUTUBE VIDEO URL

List the Video Formats

youtube-dl --list-formats YOUTUBEVIDEOURL

Download youtube video by using Format code

youtube-dl -f FORMATCODE YOUTUBEVIDEOURL

Download as MP3

youtube-dl --extract-audio --audio-format mp3 YOUTUBE VIDEO URL
Install youtube-dl on Termux

Uninstall youtube-dl

Uninstall youtube-dl from Termux

  • Installed Location - /data/data/com.termux/files/usr/bin/
  • Goto youtube-dl installed location
cd /data/data/com.termux/files/usr/bin/
  • Remove/uninstall youtube-dl Software
rm youtube-dl

From the Editor's Desk

Hope this tutorial will help your install youtube-dl command line tool on Android by using termux.
If you have doubts feel free to comment here I will guide you.