yt-dlp is a command-line tool for which allows a user to download audio/video from thousands of sites. The project is a fork of youtube-dl, which is based on the now inactive youtube-dlc.
yt-dlp can be installed using official releases or via package manager.
Unix-like operating system
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o ~/.local/bin/yt-dlp
chmod a+rx ~/.local/bin/yt-dlp # Make executable
To update yt-dlp in Unix-like operating system
yt-dlp -U
Homebrew MacOS
brew install yt-dlp
Ubuntu
sudo add-apt-repository ppa:tomtomtom/yt-dlp # Add ppa repo to apt
sudo apt update # Update package list
sudo apt install yt-dlp # Install yt-dlp
Snap
sudo snap install --edge yt-dlp
Windows operating system
yt-dlp is also available for Windows operating system by using, winget:
winget install yt-dlp
Microsoft Windows binary package
The binary package for Microsoft Windows binary package can be downloaded from yt-dlp GitHub release page
Note that yt-dlp requires ffmpeg windows binaries which can be obtained from gyan.dev’s Codex FFMPEG Build
Please refer to this post for more information on the tips and tricks on using yt-dlp.
