Dotlayer
  • News
  • Startups
  • Tutorials
  • SEO
  • Marketing
  • Interviews
No Result
View All Result
Dotlayer
  • News
  • Startups
  • Tutorials
  • SEO
  • Marketing
  • Interviews
No Result
View All Result
Dotlayer
No Result
View All Result

How to Install and Use YouTube-DL – A Command Line Video Download Tool for Linux

February 25, 2018
in Tutorials
0 0
Share on FacebookShare on Twitter

Many times, there are videos that we want to download but unfortunately, it’s difficult to find a download manager that can fetch the links to these videos.

Youtube-dl is a python based command-line tool that allows download of videos from sites like; Youtube, Dailymotion, Google, Photobucket, Facebook, Yahoo, Metacafe and Depositfiles.

These were the initial websites that the script was designed for but, recently, other new websites – brightcove.com, auengine.com, RingTv, instagram.com, Jukebox, 3sat, Cspan, Statigr.am, gamespot.com – have been added.

Youtube-dl is written in PyGTK and requires Python interpreter to run this program, hence it can run on any Unix, Windows or Mac OS X based system.

Youtube-dl also allows you to choose specific available video quality format to download or let the program itself automatically download higher quality video from the site.

It also has support for user-specific playlist downloads, options to add custom or original title to the downloaded video file and proxy support.

Installing in RHEL/CentOS and Fedora

First of all, enable the epel repository by running the command below:

## RHEL/CentOS 7 64-Bit ##
# wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# rpm -ivh epel-release-latest-7.noarch.rpm

You can then install the youtube-dl application using the command below:

yum install youtube-dl

If you don’t want to add any third party repository, open the terminal and run the following commands:

sudo curl http://yt-dl.org/latest/youtube-dl  -o  /usr/local/bin/youtube-dl 

Alternatively, you can use wget to download the binary file as well.

sudo wget https://yt-dl.org/downloads/latest/youtube-dl  -O   /usr/local/bin/youtube-dl

NB: Your system must have curl or wget packages installed

After fetching the file, you need to set a executable permission on the script to execute properly

chmod a+rx  /usr/local/bin/youtube-dl

Install in Ubuntu/Linux Mint and Debian

Open terminal, add the repository and install the youtube-dl packages below using the commands listed below:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install youtube-dl

Similarly, instead using any thrid party PPA, you can use curl or wget command to install latest version of youtube-dl script as below;

sudo curl http://yt-dl.org/latest/youtube-dl  -o  /usr/local/bin/youtube-dl 
sudo wget https://yt-dl.org/downloads/latest/youtube-dl  -O   /usr/local/bin/youtube-dl

After downloading set the script to executable permission

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

After Installation
To Update Youtube-dl use the command below:

youtube-dl -U

To download a video, use the command below:

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

To list available video formats

youtube-dl –list-formats  https://www.youtube.com/watch?v=iRYvuS90xdA

To know all available options

youtube-dl  --help

To Download a list of Video files, create a file with all the links

youtube-dl -a youtube_links.txt

If you liked this article, then please subscribe to our mailing list for WordPress video tutorials. You can also find us on Twitter and Facebook.

ShareTweetPin
Previous Post

How to Set-up and Install WordPress Using WP-CLI on Ubuntu 16.04 LTS

Next Post

How to Use the WP-CLI Command Line Tool to Change Your WordPress Website Url or Domain

Next Post

How to Use the WP-CLI Command Line Tool to Change Your Wordpress Website Url or Domain

You might also like

Mint Linux vs Ubuntu: Which is Right For You?

Mint Linux vs Ubuntu: Which is Right For You?

March 12, 2022
Net Neutrality: What is it and Why Should You Care?

Net Neutrality: What is it and Why Should You Care?

March 12, 2022
Solid State Drives – Why You Should Buy One Today

Solid State Drives – Why You Should Buy One Today

March 12, 2022

Machine Learning Algorithms Every Beginner Should Know

January 25, 2022
What Is the log4j Vulnerability, log4shell, an Example Step-By-Step Exploit and How to Fixed It

What Is the log4j Vulnerability, log4shell, an Example Step-By-Step Exploit and How to Fixed It

December 11, 2021
Simple Video Call integration into Website with Jitsi

Simple Video Call integration into Website with Jitsi

May 26, 2020
  • Terms of Service
  • Privacy Policy
  • Careers

© 2021 Dotlayer.com

No Result
View All Result
  • About Us
  • Advertise
  • Blog
  • Careers
  • Contact
  • Contact Us
  • Get Featured
  • Home Layout 1
  • Home Layout 2
  • Home Layout 3
  • Privacy Policy
  • Security
  • Services
  • Subscribe To Dotlayer
  • Terms of Service
  • Write For Us

© 2021 Dotlayer.com

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In