yt-dlp install on Ubuntu 22.04
March 1, 2023
code
# upgrade pip
python3.10 -m pip install --upgrade pip
# install yt-dlp
pip3 install yt-dlp
On Ubuntu, you have to run commands with python3 and pip3
Config files can be created at:
~/yt-dlp.conffor user-specific config/etc/yt-dlp.conffor system-wide config
Here's my sample config
code
# 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
code
# Usage
yt-dlp https://www.youtube.com/watch?v=gsNaR6FRuO0