# How to update yt-dlp

The yt-dlp update command for each install - binary, pip, Homebrew, winget, apt, Docker - and what to do when yt-dlp -U says 'Use that to update'.

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`.

<div className="overflow-x-auto">
<table>
<tbody>
<tr><td><strong>Standalone binary</strong></td><td><code>yt-dlp -U</code></td></tr>
<tr><td><strong>pip</strong></td><td><code>python3 -m pip install -U "yt-dlp[default]"</code></td></tr>
<tr><td><strong>pipx</strong></td><td><code>pipx upgrade yt-dlp</code></td></tr>
<tr><td><strong>Homebrew (macOS / Linux)</strong></td><td><code>brew upgrade yt-dlp</code></td></tr>
<tr><td><strong>winget (Windows)</strong></td><td><code>winget upgrade yt-dlp</code></td></tr>
<tr><td><strong>Scoop (Windows)</strong></td><td><code>scoop update yt-dlp</code></td></tr>
</tbody>
</table>
</div>

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.

<BreakageAlerts variant="update-guide" />

## Not sure how you installed it?

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

```bash
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`

```bash
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`

```bash
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.`

```bash
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`

```bash
git pull
```

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

## If you installed with pip

```bash
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](/guides/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:

```bash
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:

```bash
# 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](/guides/run-yt-dlp-server) covers that. If you would rather not maintain this inside an app at all, [Importly](https://importly.io/?utm_source=ytdlp.org&utm_medium=referral&utm_campaign=doc-cta&utm_content=update-server&utm_term=%2Fguides%2Fupdate-yt-dlp) is a hosted API that takes the link and returns the file, transcript or metadata, with nothing to update on your side.

<AppCodeTabs />

## How to tell whether the update worked

```bash
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.

<DocCta variant="troubleshooting-soft" />

<Faq />

## Related guides

- [Install yt-dlp](/guides/install-yt-dlp)
- [Fix common yt-dlp errors](/guides/fix-yt-dlp-errors)
- [Fix ffmpeg not found](/guides/fix-ffmpeg-not-found)
- [Use cookies with yt-dlp](/guides/yt-dlp-cookies)
- [Fix HTTP 403 / forcing SABR streaming](/guides/fix-403-sabr)
- [Run yt-dlp on a server or in Docker](/guides/run-yt-dlp-server)