{"id":3647,"date":"2023-12-02T18:24:46","date_gmt":"2023-12-03T02:24:46","guid":{"rendered":"https:\/\/hellbach.us\/blog\/?p=3647"},"modified":"2023-12-02T18:24:51","modified_gmt":"2023-12-03T02:24:51","slug":"how-to-download-youtube-videos-in-linux-using-yt-dlp","status":"publish","type":"post","link":"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/","title":{"rendered":"How to Download YouTube Videos in Linux Using YT-DLP"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:31,&quot;href&quot;:&quot;https:\\\/\\\/github.com\\\/yt-dlp\\\/yt-dlp&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251118054120\\\/https:\\\/\\\/github.com\\\/yt-dlp\\\/yt-dlp&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-11-18 19:12:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-11-27 23:11:00&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-12 20:24:13&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-02 17:34:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-10 22:28:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-20 19:34:04&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-25 04:37:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-07 05:51:06&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-20 18:19:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-22 14:24:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-13 07:08:18&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-24 11:13:39&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-05-24 11:13:39&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:32,&quot;href&quot;:&quot;https:\\\/\\\/www.tecmint.com\\\/top-most-popular-linux-distributions&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20250929041250\\\/https:\\\/\\\/www.tecmint.com\\\/top-most-popular-linux-distributions\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-11-18 19:12:56&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-11-27 23:11:08&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-12 20:24:13&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-02 17:34:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-10 22:28:42&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-09 21:51:38&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-20 18:19:12&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-22 14:24:55&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-13 07:08:17&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-24 11:13:38&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-05-24 11:13:38&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:33,&quot;href&quot;:&quot;https:\\\/\\\/www.tecmint.com\\\/linux-curl-command-examples&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251006124911\\\/https:\\\/\\\/www.tecmint.com\\\/linux-curl-command-examples\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-11-18 19:13:01&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-11-27 23:11:09&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-12 20:24:14&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-02 17:34:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-10 22:28:42&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-09 21:51:40&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-03-09 21:51:40&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:34,&quot;href&quot;:&quot;https:\\\/\\\/www.tecmint.com\\\/10-wget-command-examples-in-linux&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251001125345\\\/https:\\\/\\\/www.tecmint.com\\\/10-wget-command-examples-in-linux\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-11-18 19:13:02&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-11-27 23:12:50&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-12 20:24:14&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-02 17:34:32&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-10 22:28:42&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-02-10 22:28:42&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:35,&quot;href&quot;:&quot;https:\\\/\\\/github.com\\\/ytdl-org\\\/youtube-dl&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251114174544\\\/https:\\\/\\\/github.com\\\/ytdl-org\\\/youtube-dl&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-11-18 19:13:04&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-13 07:08:19&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-05-13 07:08:19&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:36,&quot;href&quot;:&quot;https:\\\/\\\/stacher.io&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251116231823\\\/https:\\\/\\\/stacher.io\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-11-18 19:13:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-13 07:08:18&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-05-13 07:08:18&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:37,&quot;href&quot;:&quot;https:\\\/\\\/www.tecmint.com\\\/download-youtube-videos-linux&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251004140459\\\/https:\\\/\\\/www.tecmint.com\\\/download-youtube-videos-linux\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-11-18 19:13:06&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-13 07:08:18&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-05-13 07:08:18&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'><\/div><style>\ncode{font-family: \"Courier New\", Courier, \"Lucida Sans Typewriter\", \"Lucida Typewriter\", monospace;}<br \/>\n<\/style>\n\n\n<p class=\"wp-block-paragraph\"><strong>YouTube<\/strong> is an online video-sharing platform that contains a vast repository of videos covering a wide range of topics such as music videos, educational content, vlogs, tutorials, movie trailers, gaming videos, and live streams.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">While the platform offers the convenience of streaming, there are certain scenarios where you might want to download these videos for offline viewing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the Linux command-line environment, <strong><code>yt-dlp<\/code><\/strong> is a powerful and versatile command-line program that allows users to download 1080p or 4K YouTube videos from YouTube.com and other video sites.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this article, we will guide you through the process of installing and using <strong><code>yt-dlp<\/code><\/strong> to download YouTube videos on a Linux command line.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is yt-dlp?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/yt-dlp\/yt-dlp\" target=\"_blank\" rel=\"noreferrer noopener\">yt-dlp<\/a>&nbsp;is a Python-based command line and fork of the well-known&nbsp;<strong>youtube-dl<\/strong>&nbsp;program that is created for downloading videos from popular video streaming platforms such as YouTube, Facebook, Twitter, Reddit, Imgur, Dailymotion, Hotstar, and various other video sites.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is developed in <strong>Python<\/strong> and requires only <strong>Python 3.8+<\/strong> and it is platform-specific, and designed to function seamlessly on Unix, Windows, or macOS environments.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It also supports many options, allowing users to customize their downloads based on preferences. One notable feature is downloading videos in different resolutions, including high-quality formats like 1080p or 4K.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Additionally, youtube-dl supports downloading entire playlists, extracting only the audio from videos, bypassing YouTube geo-restrictions, pausing and resuming video downloads, and splitting videos into multiple files.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Install yt-dlp on Linux<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>yt-dlp<\/strong> is the most widely used command-line tool that is easily available to install from the default repositories in <a href=\"https:\/\/www.tecmint.com\/top-most-popular-linux-distributions\/\" target=\"_blank\" rel=\"noreferrer noopener\">most Linux distributions<\/a>, if not all.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To install&nbsp;<strong>yt-dlp<\/strong>&nbsp;on Linux, use the following appropriate command for your specific Linux distribution.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-be313201785c9bb30f6d7ece43858cc2 wp-block-paragraph\"><code>sudo apt install yt-dlp [On <strong>Debian, Ubuntu and Mint<\/strong>] <br \/>sudo yum install yt-dlp [On <strong>RHEL\/CentOS\/Fedora<\/strong> and <strong>Rocky\/AlmaLinux<\/strong>] <br \/>sudo emerge -a sys-apps\/yt-dlp [On <strong>Gentoo Linux<\/strong>] <br \/>sudo apk add yt-dlp [On <strong>Alpine Linux<\/strong>] <br \/>sudo pacman -S yt-dlp [On <strong>Arch Linux<\/strong>] <br \/>sudo zypper install yt-dlp [On <strong>OpenSUSE<\/strong>]<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To install the most recent version of <strong>yt-dlp<\/strong>, you can use the following <a href=\"https:\/\/www.tecmint.com\/linux-curl-command-examples\/\" target=\"_blank\" rel=\"noreferrer noopener\">curl command<\/a>.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-5faf377fbd05d7f005f56faf86aa0600 wp-block-paragraph\"><code>sudo curl -L https:\/\/github.com\/yt-dlp\/yt-dlp\/releases\/latest\/download\/yt-dlp -o \/usr\/local\/bin\/yt-dlp sudo chmod a+rx \/usr\/local\/bin\/yt-dlp<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you do not have <strong>curl<\/strong> installed, you can alternatively use the following <a href=\"https:\/\/www.tecmint.com\/10-wget-command-examples-in-linux\/\" target=\"_blank\" rel=\"nofollow noopener\">wget command<\/a>.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-a426ee57ec9d72221f3fbd3f4749e2e5 wp-block-paragraph\"><code>sudo wget https:\/\/github.com\/yt-dlp\/yt-dlp\/releases\/latest\/download\/yt-dlp -O \/usr\/local\/bin\/yt-dlp sudo chmod a+rx \/usr\/local\/bin\/yt-dlp<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once installed, you can use the following command to update it to the latest version.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-7f7b874faabc20771794cc8eb6347751 wp-block-paragraph\"><code>yt-dlp -U<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Downloading a YouTube Video on Linux<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To download a YouTube video, use the following command, where <code>&lt;video_url&gt;<\/code> is the URL of the YouTube video that you want to download.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-8ac67e3ef836635996eb6166c44f8445 wp-block-paragraph\"><code>yt-dlp &lt;video_url&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, to download a YouTube video replace <code>&lt;video_url&gt;<\/code> with the actual URL of the YouTube video you intend to download.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-0167470bcbde018f91c0babdfa635a93 wp-block-paragraph\"><code>yt-dlp https:\/\/www.youtube.com\/watch?v=60ItHLz5WEA<\/code><\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image\" id=\"attachment_54082\"><img decoding=\"async\" data-id=\"54082\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2023\/11\/Download-YouTube-Video-in-Linux.png\" alt=\"Download YouTube Video in Linux\" class=\"wp-image-54082\"\/><figcaption class=\"wp-element-caption\">Download YouTube Video on Linux<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You can also download multiple videos at once by specifying a list of URLs separated by spaces.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-7c2041f11cc054e458eb46f1e3e698e2 wp-block-paragraph\"><code>yt-dlp &lt;video_url_1&gt; &lt;video_url_2&gt; ...<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Downloading a YouTube Playlist on Linux<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To download a YouTube playlist, simply run the following command to download the entire playlist. Make sure to replace the&nbsp;<code>&lt;playlist_url&gt;<\/code>&nbsp;of the YouTube playlist URL that you want to download.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-0d4e53c9ec4d24259e1544a5ff8b7b72 wp-block-paragraph\"><code>yt-dlp -i --yes-playlist<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Downloading YouTube Videos in Different Formats<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>yt-dlp<\/strong> provides several options for downloading YouTube videos in various formats, allowing you to tailor the process to your specific needs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To download a specific format, you first need to list the available format codes for a video by running.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-1ac082159e6a1d4aca3689a4c2f79629 wp-block-paragraph\"><code>yt-dlp -F https:\/\/www.youtube.com\/watch?v=60ItHLz5WEA<\/code><\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image\" id=\"attachment_54084\"><img decoding=\"async\" data-id=\"54084\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2023\/11\/List-YouTube-Video-Formats.png\" alt=\"List YouTube Video Formats\" class=\"wp-image-54084\"\/><figcaption class=\"wp-element-caption\">List YouTube Video Formats<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To download high-quality YouTube video and audio, use the following command.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-df02499c5e475274b730d4967bf94474 wp-block-paragraph\"><code>yt-dlp -f best https:\/\/www.youtube.com\/watch?v=60ItHLz5WEA<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To download YouTube videos in 1080 resolution, use the following command.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-195251115d213f9d4c1d0c916214a85b wp-block-paragraph\"><code>yt-dlp -f 'bestvideo[height=1080]+bestaudio\/best[height=1080]' &lt;video_url&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To download a YouTube video in 4K resolution, use the following command.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-75a309ea6fa473dc0ae56dbff6d288ef wp-block-paragraph\"><code>yt-dlp -f 'bestvideo[height=2160]+bestaudio\/best[height=2160]' &lt;video_url&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To download audio only (mp3 format) from a Youtube video, use the following command.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-0f939014d9e8714411e4a90f75aff078 wp-block-paragraph\"><code>yt-dlp -x --audio-format mp3 &lt;video_url&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To download a YouTube video in a specific format, use the following command.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"background-color: inherit; color: initial; font-family: monospace; font-size: inherit;\"><code>yt-dlp -f mp4 &lt;video_url&gt;<\/code><\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Download Subtitles of YouTube Videos<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>yt-dlp<\/strong> provides the easiest way to download subtitles of videos directly alongside the video itself.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To list all available subtitles for a specific YouTube video, use the following command, which will show a list of available subtitles along with their language codes.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-c29ad3fa23a88be1339185da9ef07d7f wp-block-paragraph\"><code>yt-dlp --list-subs https:\/\/www.youtube.com\/watch?v=60ItHLz5WEA<\/code><\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image\" id=\"attachment_54085\"><img decoding=\"async\" data-id=\"54085\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2023\/11\/List-YouTube-Video-Subtitles.png\" alt=\"List YouTube Video Subtitles\" class=\"wp-image-54085\"\/><figcaption class=\"wp-element-caption\">List YouTube Video Subtitles<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To download subtitles along with a video, use the <code>-S<\/code> option.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-9b6568b9dae9a9141375ea7eafa8a3be wp-block-paragraph\">yt-dlp -S &lt;video_url&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To download only specific subtitles, you can specify the language code after the\u00a0<code>-S<\/code>\u00a0option.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-352aa7b1d966e04bf357679a3e331730 wp-block-paragraph\">yt-dlp -S en,es &lt;video_url><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you only want to download subtitles without the video, you can use the \u2013write-sub option with the -S option.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-a0f6183d75af6bd1e0bc2635a3fc8cfe wp-block-paragraph\">yt-dlp -S &#8211;write-sub &lt;video_url><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Conclusion<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>yt-dlp<\/strong>&nbsp;is a versatile and efficient command-line tool for downloading YouTube videos in the Linux environment. It comes with a broad range of customization options and supports various video and audio formats.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By following the steps outlined in this article, you can harness the power of&nbsp;<strong>yt-dlp<\/strong>&nbsp;to easily download and enjoy your favorite YouTube content offline on your Linux system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Resources:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/ytdl-org\/youtube-dl\" target=\"_blank\" rel=\"no follow noopenner noopener\">GitHub &#8211; ytdl-org\/youtube-dl: Command-line program to download videos from YouTube.com and other video sites<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/yt-dlp\/yt-dlp\" target=\"_blank\" rel=\"no follow noopenner noopener\">GitHub &#8211; yt-dlp\/yt-dlp: A youtube-dl fork with additional features and fixes<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/stacher.io\/\" target=\"_blank\" rel=\"no follow noopenner noopener\">Stacher<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Source: <a href=\"https:\/\/www.tecmint.com\/download-youtube-videos-linux\/\" target=\"_blank\" rel=\"no follow noopenner noopener\">techMint<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>YouTube is an online video-sharing platform that contains a vast repository of videos covering a wide range of topics such as music videos, educational content, vlogs, tutorials, movie trailers, gaming videos, and live streams. While the platform offers the convenience &hellip; <a href=\"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,2,16],"tags":[269,267,268,270],"class_list":["post-3647","post","type-post","status-publish","format-standard","hentry","category-comp","category-tech","category-video","tag-download","tag-unix","tag-youtube","tag-yt-dlp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Download YouTube Videos in Linux Using YT-DLP - Hellbach blog<\/title>\n<meta name=\"description\" content=\"yt-dlp is a Python-based command line and fork of the well-known youtube-dl program that is created for downloading videos from YouTube and other sites.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Download YouTube Videos in Linux Using YT-DLP\" \/>\n<meta property=\"og:description\" content=\"yt-dlp is a Python-based command line and fork of the well-known youtube-dl program that is created for downloading videos from YouTube and other sites.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/\" \/>\n<meta property=\"og:site_name\" content=\"Hellbach blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-03T02:24:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-03T02:24:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hellbach.us\/blog\/wp-content\/uploads\/2023\/12\/Download-YouTube-Videos-on-Linux1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"720\" \/>\n\t<meta property=\"og:image:height\" content=\"340\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"alex\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Download YouTube Videos in Linux Using YT-DLP\" \/>\n<meta name=\"twitter:description\" content=\"yt-dlp is a Python-based command line and fork of the well-known youtube-dl program that is created for downloading videos from YouTube and other sites.\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"alex\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/\"},\"author\":{\"name\":\"alex\",\"@id\":\"https:\/\/hellbach.us\/blog\/#\/schema\/person\/9bf1a63e253268c42a6e9db64611c507\"},\"headline\":\"How to Download YouTube Videos in Linux Using YT-DLP\",\"datePublished\":\"2023-12-03T02:24:46+00:00\",\"dateModified\":\"2023-12-03T02:24:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/\"},\"wordCount\":764,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/hellbach.us\/blog\/#\/schema\/person\/9bf1a63e253268c42a6e9db64611c507\"},\"image\":{\"@id\":\"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2023\/11\/Download-YouTube-Video-in-Linux.png\",\"keywords\":[\"download\",\"unix\",\"youtube\",\"yt-dlp\"],\"articleSection\":[\"Computer\",\"Technology\",\"Video\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/\",\"url\":\"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/\",\"name\":\"How to Download YouTube Videos in Linux Using YT-DLP - Hellbach blog\",\"isPartOf\":{\"@id\":\"https:\/\/hellbach.us\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2023\/11\/Download-YouTube-Video-in-Linux.png\",\"datePublished\":\"2023-12-03T02:24:46+00:00\",\"dateModified\":\"2023-12-03T02:24:51+00:00\",\"description\":\"yt-dlp is a Python-based command line and fork of the well-known youtube-dl program that is created for downloading videos from YouTube and other sites.\",\"breadcrumb\":{\"@id\":\"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/#primaryimage\",\"url\":\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2023\/11\/Download-YouTube-Video-in-Linux.png\",\"contentUrl\":\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2023\/11\/Download-YouTube-Video-in-Linux.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hellbach.us\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Download YouTube Videos in Linux Using YT-DLP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hellbach.us\/blog\/#website\",\"url\":\"https:\/\/hellbach.us\/blog\/\",\"name\":\"Hellbach blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/hellbach.us\/blog\/#\/schema\/person\/9bf1a63e253268c42a6e9db64611c507\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hellbach.us\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/hellbach.us\/blog\/#\/schema\/person\/9bf1a63e253268c42a6e9db64611c507\",\"name\":\"alex\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hellbach.us\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9868a7f8fd709cd74cf51d978359a3ce66a47a17cd57185a9e1a4774d288e228?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9868a7f8fd709cd74cf51d978359a3ce66a47a17cd57185a9e1a4774d288e228?s=96&d=mm&r=g\",\"caption\":\"alex\"},\"logo\":{\"@id\":\"https:\/\/hellbach.us\/blog\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Download YouTube Videos in Linux Using YT-DLP - Hellbach blog","description":"yt-dlp is a Python-based command line and fork of the well-known youtube-dl program that is created for downloading videos from YouTube and other sites.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/","og_locale":"en_US","og_type":"article","og_title":"How to Download YouTube Videos in Linux Using YT-DLP","og_description":"yt-dlp is a Python-based command line and fork of the well-known youtube-dl program that is created for downloading videos from YouTube and other sites.","og_url":"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/","og_site_name":"Hellbach blog","article_published_time":"2023-12-03T02:24:46+00:00","article_modified_time":"2023-12-03T02:24:51+00:00","og_image":[{"width":720,"height":340,"url":"https:\/\/hellbach.us\/blog\/wp-content\/uploads\/2023\/12\/Download-YouTube-Videos-on-Linux1.png","type":"image\/png"}],"author":"alex","twitter_card":"summary_large_image","twitter_title":"How to Download YouTube Videos in Linux Using YT-DLP","twitter_description":"yt-dlp is a Python-based command line and fork of the well-known youtube-dl program that is created for downloading videos from YouTube and other sites.","twitter_misc":{"Written by":"alex","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/#article","isPartOf":{"@id":"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/"},"author":{"name":"alex","@id":"https:\/\/hellbach.us\/blog\/#\/schema\/person\/9bf1a63e253268c42a6e9db64611c507"},"headline":"How to Download YouTube Videos in Linux Using YT-DLP","datePublished":"2023-12-03T02:24:46+00:00","dateModified":"2023-12-03T02:24:51+00:00","mainEntityOfPage":{"@id":"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/"},"wordCount":764,"commentCount":0,"publisher":{"@id":"https:\/\/hellbach.us\/blog\/#\/schema\/person\/9bf1a63e253268c42a6e9db64611c507"},"image":{"@id":"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/#primaryimage"},"thumbnailUrl":"https:\/\/www.tecmint.com\/wp-content\/uploads\/2023\/11\/Download-YouTube-Video-in-Linux.png","keywords":["download","unix","youtube","yt-dlp"],"articleSection":["Computer","Technology","Video"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/","url":"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/","name":"How to Download YouTube Videos in Linux Using YT-DLP - Hellbach blog","isPartOf":{"@id":"https:\/\/hellbach.us\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/#primaryimage"},"image":{"@id":"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/#primaryimage"},"thumbnailUrl":"https:\/\/www.tecmint.com\/wp-content\/uploads\/2023\/11\/Download-YouTube-Video-in-Linux.png","datePublished":"2023-12-03T02:24:46+00:00","dateModified":"2023-12-03T02:24:51+00:00","description":"yt-dlp is a Python-based command line and fork of the well-known youtube-dl program that is created for downloading videos from YouTube and other sites.","breadcrumb":{"@id":"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/#primaryimage","url":"https:\/\/www.tecmint.com\/wp-content\/uploads\/2023\/11\/Download-YouTube-Video-in-Linux.png","contentUrl":"https:\/\/www.tecmint.com\/wp-content\/uploads\/2023\/11\/Download-YouTube-Video-in-Linux.png"},{"@type":"BreadcrumbList","@id":"https:\/\/hellbach.us\/blog\/tech\/comp\/how-to-download-youtube-videos-in-linux-using-yt-dlp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hellbach.us\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Download YouTube Videos in Linux Using YT-DLP"}]},{"@type":"WebSite","@id":"https:\/\/hellbach.us\/blog\/#website","url":"https:\/\/hellbach.us\/blog\/","name":"Hellbach blog","description":"","publisher":{"@id":"https:\/\/hellbach.us\/blog\/#\/schema\/person\/9bf1a63e253268c42a6e9db64611c507"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hellbach.us\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/hellbach.us\/blog\/#\/schema\/person\/9bf1a63e253268c42a6e9db64611c507","name":"alex","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hellbach.us\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9868a7f8fd709cd74cf51d978359a3ce66a47a17cd57185a9e1a4774d288e228?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9868a7f8fd709cd74cf51d978359a3ce66a47a17cd57185a9e1a4774d288e228?s=96&d=mm&r=g","caption":"alex"},"logo":{"@id":"https:\/\/hellbach.us\/blog\/#\/schema\/person\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/hellbach.us\/blog\/wp-json\/wp\/v2\/posts\/3647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hellbach.us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hellbach.us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hellbach.us\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hellbach.us\/blog\/wp-json\/wp\/v2\/comments?post=3647"}],"version-history":[{"count":0,"href":"https:\/\/hellbach.us\/blog\/wp-json\/wp\/v2\/posts\/3647\/revisions"}],"wp:attachment":[{"href":"https:\/\/hellbach.us\/blog\/wp-json\/wp\/v2\/media?parent=3647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hellbach.us\/blog\/wp-json\/wp\/v2\/categories?post=3647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hellbach.us\/blog\/wp-json\/wp\/v2\/tags?post=3647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}