replacing-youtube-dl-with-yt-dlp.md (1513B)
1 --- 2 title: "Replacing youtube-dl with yt-dlp" 3 date: 2021-09-18T17:58:00 4 tags: ["Media", "Linux", "Snippets", "Software"] 5 --- 6 7 At the time of writing, [youtube-dl](https://github.com/ytdl-org/youtube-dl) hasn't been updated since July 2021 and has many unresolved issues, some of which cause real problems with my RSS/YouTube workflow. In steps [yt-dlp](https://github.com/yt-dlp/yt-dlp) to the rescue which fixes the issues I've experienced and continues to be updated to this day. 8 9 Now while I usually like to keep as many items as possible managed via my package manager (and there are yt-dlp [AUR packages available](https://aur.archlinux.org/packages/?K=yt-dlp)), youtube-dl was one of the exceptions I'd make. Usually I'll stick to the same version until I need to manually update for a broken website. 10 11 Uninstall any older versions you have floating around on your system and install the latest binary from GitHub and make it executable: 12 ``` 13 sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp 14 sudo chmod a+rx /usr/local/bin/yt-dlp 15 ``` 16 17 Now you can symlink the new binary to the old name to emulate any calls to `youtube-dl` with `yt-dlp` using: 18 ``` 19 sudo ln -s /usr/local/bin/yt-dlp /usr/local/bin/youtube-dl 20 ``` 21 22 Now ensure you can update the binary using 23 ``` 24 sudo youtube-dl -U 25 ``` 26 27 And you're done. 28 29 * **Edit 2021-10-27:** [yt-dlp](https://archlinux.org/packages/community/any/yt-dlp/) is now available as an official package making this guide obsolete