Skip to content

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

Windows Linux MacOS Other variants

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 executable
php
sudo 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 executable
php
sudo 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 executable

To update, run:

php
sudo yt-dlp -U

To 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:

php
python3 -m pip install -U yt-dlp

You can install without any of the optional dependencies using:

php
python3 -m pip install --no-deps -U yt-dlp

If you want to be on the cutting edge, you can also install the master branch with:

php
python3 -m pip install -U pip setuptools wheel
python3 -m pip install --force-reinstall https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz

On some systems, you may need to use py or python instead of python3

To update, run:

json
python3 -m pip install -U yt-dlp

Third-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

Packaging status

Linux/MacOS

Homebrew

macOS or Linux users that are using Homebrew can also install it by:

python
brew install yt-dlp

To update, run:

python
brew upgrade yt-dlp

pacman

Arch Linux users can install it from the official community repository:

bash
sudo pacman -Syu yt-dlp

pacman will now automatically download the correct dependencies and keep the package up-to-date whenever you update your system with:

bash
sudo pacman -Syu

APT

You can download and install yt-dlp for recent Ubuntu and other related Debian-based distributions by adding the this PPA

bash
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

Your 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:

bash
sudo apt update
sudo apt install yt-dlp

MacPorts

You can install yt-dlp on macOS using MacPorts:

bash
sudo port install yt-dlp

To update, run:

bash
sudo port selfupdate
sudo port upgrade yt-dlp

Alpine 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-dlp

Or alternatively, without any optional dependencies:

php
doas apk -U add yt-dlp-core

yt-dlp should upgrade with your system. If you want to do that explicitly:

php
doas apk -U upgrade yt-dlp

To uninstall:

php
doas apk del yt-dlp

On postmarketOS you might have to use sudo instead of doas.

Windows

Scoop

bash
scoop install yt-dlp

To update, run:

bash
scoop update yt-dlp

Chocolatey

bash
choco install yt-dlp

To update, run:

php
choco upgrade yt-dlp

winget

php
winget install yt-dlp

To update, run:

php
winget upgrade yt-dlp

Android

You can use yt-dlp on Android using Termux. Once Termux is installed, open it and run the following commands:

html
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 ffmpeg

To update, run:

html
pip install -U yt-dlp

Personal notes