Grab the binary for your platform and download in a folder that’s part of your path.
sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp /usr/local/bin
chown $USER:$USER yt-dlp
Make it executable:
chmod +x yt-dlp
If you get the error:
/usr/bin/env: ‘python’: No such file or directory, run:
sudo ln -s /usr/bin/python3 /usr/bin/python
That should download the video into whatever folder you ran the above command from.
(Optional) Create config file
You can use
--ignore-config if you want to disable using the config file for a particular youtube-dl run.
Default output template
You can view list of available fields here.
Download single video to current folder
Download entire playlist to current folder
Download MP3 of video / playlist
yt-dlp <video-or-playlist-url> -x --audio-format mp3
Tip: You can make your playlist unlisted to make it easier to download with yt-dlp without having to pass your account credentials.