Notes

yt-dlp install on Ubuntu 22.04

yt-dlp is a youtube-dl fork with additional features and fixes

Edit on GitHub

Misc.
1# upgrade pip
2python3.10 -m pip install --upgrade pip
3
4# install yt-dlp
5pip3 install yt-dlp

On Ubuntu, you have to run commands with python3 and pip3

Config files can be created at:

  • ~/yt-dlp.conf for user-specific config
  • /etc/yt-dlp.conf for system-wide config

Here’s my sample config

# User config: ~/yt-dlp.conf
# System config: /etc/yt-dlp.conf

# Always extract audio (-x or --extract-audio)
--extract-audio

# Always save Audio in MP3 format
--audio-format mp3

# Save all files to this location
-o /home/USERNAME/Mounts/Media/Music/%(title)s.%(ext)s

I always only want mp3 audio files and want them saved in my external drive

1# Usage
2yt-dlp https://www.youtube.com/watch?v=gsNaR6FRuO0