This is an old revision of the document!
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
After fetching the file, you need to set a executable permission on the script to execute properly.
sudo chmod a+rx /usr/local/bin/youtube-dl
Once installed, you can update it to the latest version using this command. This is helpful when you have been using it for a few months:
youtube-dl -U
Using YouTube-dl for downloading videos: To download a video file, simply run the following command. Where “VIDEO_URL” is the URL of the video that you want to download.
youtube-dl <video_url>