yt-dlp
Installation
You can install yt-dlp either using one of the official releases, or with your favorite package manager
If you are unfamiliar with the command line, you may use one of the many third-party GUIs available
Using the release binary
You can simply download the correct binary file for your OS
In UNIX-like OSes (MacOS, Linux, BSD), you can also install the same in one of the following ways:
sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp # Make executablesudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp # Make executablesudo aria2c https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp --dir /usr/local/bin -o yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp # Make executableTo update, run:
sudo yt-dlp -UTo use shell completion (autocomplete), look for the completion files in the source tarball. It comes with bash, fish & zsh support.
With pip
You can install the PyPI package with:
python3 -m pip install -U yt-dlpYou can install without any of the optional dependencies using:
python3 -m pip install --no-deps -U yt-dlpIf you want to be on the cutting edge, you can also install the master branch with:
python3 -m pip install -U pip setuptools wheel
python3 -m pip install --force-reinstall https://github.com/yt-dlp/yt-dlp/archive/master.tar.gzOn some systems, you may need to use py or python instead of python3
To update, run:
python3 -m pip install -U yt-dlpThird-party package managers
Note: These packages are maintained by third-parties and may not be up-to-date. Please report any issues to the respective package maintainers
Linux/MacOS
Homebrew
macOS or Linux users that are using Homebrew can also install it by:
brew install yt-dlpTo update, run:
brew upgrade yt-dlppacman
Arch Linux users can install it from the official community repository:
sudo pacman -Syu yt-dlppacman will now automatically download the correct dependencies and keep the package up-to-date whenever you update your system with:
sudo pacman -SyuAPT
You can download and install yt-dlp for recent Ubuntu and other related Debian-based distributions by adding the this PPA
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-dlpYour system's package manager will now automatically download the correct dependencies and keep the package updated with the rest of your system whenever you run:
sudo apt update
sudo apt install yt-dlpMacPorts
You can install yt-dlp on macOS using MacPorts:
sudo port install yt-dlpTo update, run:
sudo port selfupdate
sudo port upgrade yt-dlpAlpine Linux
Make sure you're on the latest version (or edge) - older versions don't receive updates for community repo.
To install yt-dlp on Alpine Linux:
doas apk -U add yt-dlpOr alternatively, without any optional dependencies:
doas apk -U add yt-dlp-coreyt-dlp should upgrade with your system. If you want to do that explicitly:
doas apk -U upgrade yt-dlpTo uninstall:
doas apk del yt-dlpOn postmarketOS you might have to use sudo instead of doas.
Windows
Scoop
scoop install yt-dlpTo update, run:
scoop update yt-dlpChocolatey
choco install yt-dlpTo update, run:
choco upgrade yt-dlpwinget
winget install yt-dlpTo update, run:
winget upgrade yt-dlpAndroid
You can use yt-dlp on Android using Termux. Once Termux is installed, open it and run the following commands:
termux-setup-storage # Allow termux to download files into your phone's storage
pkg update && pkg upgrade # Update all packages
pkg install libexpat openssl python # Install python
pip install -U yt-dlp # Install yt-dlp
pkg install ffmpeg # OPTIONAL: Install ffmpegTo update, run:
pip install -U yt-dlp