ytdlp.org
On this page

Maintenance guide

How to update yt-dlp

When yt-dlp suddenly breaks, the first thing to check is your version. The right update command depends on how you installed it. If you use the wrong update path, you can waste time thinking yt-dlp is broken when really you just updated the wrong copy.

Quick answer: the command depends on how you installed it

There is no single update command for yt-dlp. yt-dlp -U only updates the standalone binary. If you installed any other way, run that tool's own upgrade command, then confirm with yt-dlp --version.

Standalone binaryyt-dlp -U
pippython3 -m pip install -U "yt-dlp[default]"
pipxpipx upgrade yt-dlp
Homebrew (macOS / Linux)brew upgrade yt-dlp
winget (Windows)winget upgrade yt-dlp
Scoop (Windows)scoop update yt-dlp

Installed through your Linux distribution (apt, dnf, pacman)? Update with that package manager, but distro packages often lag weeks behind. If a site just broke, switch to pip or the standalone binary to get the current build.

Get an email when an update fixes something.

2–4 emails a month, only when something breaks or gets fixed. Unsubscribe anytime.

Not sure how you installed it?

Check the path of the yt-dlp your terminal actually runs, then match it to the table above.

which yt-dlp      # macOS / Linux
where yt-dlp      # Windows

A path under a Python environment (site-packages, a venv, or pipx) means pip; one under Homebrew or Scoop points to that manager; a lone binary on your PATH is the standalone build. Update the copy at that exact path, not a different one.

yt-dlp -U says "Use that to update"

When yt-dlp was not installed as the standalone binary, yt-dlp -U refuses and tells you which tool owns it. Find your message below and run the command next to it.

ERROR: You installed yt-dlp with pip or using the wheel from PyPi; Use that to update

python3 -m pip install -U "yt-dlp[default]"

Run it with the same Python that owns the install (inside the venv if there is one). With pipx, use pipx upgrade yt-dlp.

ERROR: You installed yt-dlp from a manual build or with a package manager; Use that to update

brew upgrade yt-dlp   # or winget upgrade yt-dlp, scoop update yt-dlp, sudo apt upgrade yt-dlp

Update through whichever manager installed it. Not sure which one? Run which yt-dlp (or where yt-dlp) and look at the path.

ERROR: As yt-dlp has been installed via apt, you should use that to update. If you're on a stable release, also check backports.

sudo apt update && sudo apt install --only-upgrade yt-dlp

Debian and Ubuntu packages often trail upstream by weeks. If a site broke today, install a current copy with pipx or the standalone binary instead.

ERROR: You cannot update when running from source code; Use git to pull the latest changes

git pull

Run it in the yt-dlp checkout you are running from.

If you installed with pip

python3 -m pip install -U "yt-dlp[default]"

Use the same Python environment that owns your current yt-dlp install. A very common mistake is updating one Python environment while your terminal is still using a different copy.

If you installed with a package manager

Homebrew, winget, apt, and similar tools can work fine, but some package sources lag behind upstream releases. If a site changed recently, the newest upstream build often matters more than using your OS package manager out of habit.

A site broke and the fix is not in the stable release yet

The latest stable, 2026.11.23, is covered in what's in yt-dlp 2026.11.23.

Extractor fixes land in the nightly channel before they reach a stable release. If you run the standalone binary and a site stopped working today, switch to nightly:

yt-dlp --update-to nightly
yt-dlp --update-to stable   # switch back later

This is a self-update feature, so it applies to the standalone binary. On pip you would install the nightly build from the project's nightly package instead.

Keeping yt-dlp current on a server or in Docker

In a container, yt-dlp -U at runtime is lost the next time the container restarts. Install it in the image and rebuild instead:

# Dockerfile
RUN pip install --no-cache-dir -U "yt-dlp[default]"

# rebuild without the cached layer so pip fetches the latest release
docker build --no-cache -t my-worker .

Rebuild on a schedule (weekly is common) and again whenever a site starts failing, and log yt-dlp --version at startup so a failed job tells you which build ran. On a plain VM, put the upgrade command from the table above in cron or your deploy script. An up-to-date build still gets blocked from many datacenter IPs; the server guide covers that. If you would rather not maintain this inside an app at all, Importly is a hosted API that takes the link and returns the file, transcript or metadata, with nothing to update on your side.

Running this inside your app on a server?

If the download has to keep working in production, the same job is one API call to Importly. You send the link and get the file back at your webhook (or by polling), from servers where self-hosted downloads get blocked. Free to try, no card required.

import os
import requests

# Submit the link; Importly POSTs the finished file to your webhook.
res = requests.post(
    "https://api.importly.io/import",
    headers={"Authorization": f"Bearer {os.environ['IMPORTLY_API_KEY']}"},
    json={
        "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
        "webhookUrl": "https://example.com/webhooks/importly",
    },
)
print(res.json()["data"]["jobId"])  # or poll GET /import/status?id=...

Get a key and make your first call in the quick start, with transcripts and metadata too.

Guides for your stack: Python, Next.js, Laravel, Rails, Go, BullMQ, Celery, Supabase Edge Functions.

How to tell whether the update worked

yt-dlp --version
yt-dlp -F "https://www.youtube.com/watch?v=BaW_jenozKc"

If the version changed and a simple format listing works, your update path is probably fine.

Most common update failures

  • permission denied when trying to overwrite the binary
  • updating with pip but using a different Python environment at runtime
  • package manager version still behind upstream
  • terminal still resolving an older yt-dlp binary on PATH

The mistake to avoid

Do not keep retrying broken downloads without confirming the update actually touched the copy of yt-dlp you are running. That is one of the easiest ways to burn time.

If it keeps breaking

Tired of fixing this every time a site changes?

Paste a link to see what a managed import API returns — the one that stays current so your workflow doesn't break.

Building this into an app? See the API your backend calls instead

Frequently asked questions

Which yt-dlp update command should I use?

It depends on how you installed it. yt-dlp -U updates only the standalone binary. For pip use python3 -m pip install -U "yt-dlp[default]", for pipx use pipx upgrade yt-dlp, for Homebrew brew upgrade yt-dlp, for winget winget upgrade yt-dlp, and for Scoop scoop update yt-dlp. Running yt-dlp -U on a pip or package-manager install will not update it. If you are unsure, run which yt-dlp (or where yt-dlp on Windows) to see which copy you are running.

How do I update yt-dlp to the nightly build?

If you run the standalone binary, switch channels with yt-dlp --update-to nightly, and go back with yt-dlp --update-to stable. The nightly channel gets extractor fixes before they reach a stable release, so it is worth trying when a site breaks and updating stable did not help.

How do I check if yt-dlp is up to date?

Run yt-dlp --version and compare it to the latest release on GitHub. The version is a date, so a build from this month means you are current. If a site just broke, an out-of-date version is the first thing to rule out.

Why does yt-dlp still break after I update it?

Almost always because you updated a different copy than the one your terminal runs. Check which yt-dlp (or where yt-dlp on Windows) to see the binary on your PATH, then update that exact install. Updating pip in one Python environment while the shell resolves another copy is the most common version of this.

yt-dlp -U says permission denied or the binary is not writable. What now?

That means the binary lives in a system directory your user cannot overwrite. Either reinstall with pip using the --user flag, update through the same package manager you installed with, or move the binary somewhere writable on your PATH. Do not keep retrying downloads until the update actually touches the copy you run.

What does "You installed yt-dlp with pip or using the wheel from PyPi; Use that to update" mean?

yt-dlp -U only replaces the standalone binary, so a pip install refuses to update itself. Run python3 -m pip install -U "yt-dlp[default]" with the same Python that owns the install, or pipx upgrade yt-dlp if you used pipx.

How do I keep yt-dlp updated in Docker or on a server?

Install it with pip in the Dockerfile and rebuild the image on a schedule (weekly, and whenever a site breaks). Running yt-dlp -U inside a running container is lost on the next restart. On a plain server, run the same upgrade command from cron or your deploy script and log yt-dlp --version so you can see which build failed.

How often should I update yt-dlp?

Whenever a site that used to work starts failing. YouTube and other large sites change their players often, and extractor fixes ship in yt-dlp within days, so updating is usually the first fix to try before changing any options.