Tuesday, November 7, 2017

How to install Youtube-dl on Lubuntu 17.10

How to install Youtube-dl on Lubuntu 17.10

Youtube-dl is command line tool for downloading videos from youtube as well as other sites that has video that you wish to download, youtube-dl is amazing. In this article i will show you how to properly install youtube-dl on lubuntu 17.10 artful.

Youtube-dl is actually available on lubuntu/ubuntu repository, so you can just install it with apt or apt-get install command, but unfortunately the youtube-dl on lubuntu repo is not really good, i mean it's probably the old version. So we better download from the maker itself.

How to install youtube-dl on Lubuntu 17.10
  • open command line/terminal on lubuntu
  • run update command
  • sudo apt-get update
  • install curl
  • sudo apt-get install curl
  • run curl to get the latest youtube-dl binary
  • sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
  • give permission to youtube-dl binary
  • sudo chmod a+rx /usr/local/bin/youtube-dl
  • done!

How to use youtube-dl command line

To download youtube videos all you have to do is run youtube-dl followed by the url of the video that you wish to download, here's an example:
youtube-dl [youtube-video-url]
youtube-dl https://www.youtube.com/watch?v=d2S87jXhlV0
youtube-dl https://www.youtube.com/watch?v=7DYjfjaZGas

If for some reason you got an error when running youtube-dl, like /usr/bin/env: ‘python’: No such file or directory or something, then you need to install python-minimal package like this:
sudo apt-get install python-minimal

No comments:

Post a Comment