Downloading youtube video from commandline

youtube-dl is a python package that allows you to download videos from youtube. You can also use yt-dlp, that is an actively maintained fork of youtube-dl.

You can install it on Ubuntu with the command

On CentOS

To download a video, use

To download only audio, use

Replace youtube video URL with URL of the video you need to download.

To see all available formats for download, run

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *