Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: In order to adapt to recent YouTube changes that are causing (most) downloads to fail with 403 errors, yt-dlp is adding a dependency on the Deno javascript interpreter. This is not currently packaged in Fedora and its suggested install method is a curl | sh, which... eww. See: https://github.com/yt-dlp/yt-dlp/issues/14404 https://github.com/yt-dlp/yt-dlp/issues/14680#issuecomment-3425624789
Found in Copr https://copr.fedorainfracloud.org/coprs/samoht0/staticbuilds/
yt-dlp-ejs can be built with packaged nodejs-npm and yt-dlp can run with --js-runtimes node
yt-dlp-ejs can be built without installing any javascript interpreter and with included prebuilt yt.solver.lib.min.js yt.solver.core.min.js https://copr.fedorainfracloud.org/coprs/nucleo/yt-dlp-ejs/build/9796045/
> This is not currently packaged in Fedora and its suggested install method is a curl | sh, which... eww. It is also possible to download the binaries built in Github Actions from the project's releases or to use cargo binstall or to build from source (https://github.com/denoland/deno/blob/main/.github/CONTRIBUTING.md#building-from-source). Deno will likely not be easy to package properly but folks familiar with rust packaging are welcome to try. As for yt-dlp-ejs, if someone wants to package it in a Guidelines-compliant way (i.e., not just copying pre-built Javascript blobs, unless that's _really_ the only way), I can probably co-maintain the package. If we do have python3-yt-dlp-ejs packaged, I'd be willing to consider https://src.fedoraproject.org/rpms/yt-dlp/pull-request/30 which enables yt-dlp to use node by default. However, I'm not sure if that's a decision we want to make for users, since the whole point of defaulting to deno and requiring manual opt-in for other runtimes is to avoid running the javascript challenges without sandboxing.
We can pull a page out of waydroids page as they do not refill their can urls and users have to Copy them when setting up waydroid. Can can chose not to set end up and just pull in does (node) and leave the configuration to the end users, But unlike waydroid, the need to look up documentation is less subtle as instead of presenting a blank form whose answers can be easily found, yt-dlp starts without errors and blows up when end isn’t configured and a yt vid is downloaded, and troubleshooting may be a bit harder due to the Need to hunt down documentation and choosing between 3 possible Options (ejs:npm, ejs:GitHub or pip install yt-dip-ejs with The first 1 only working on a subset of js runtimes, and the need to actively check for updates if pip install is used). This may Confuse new users or people who aren’t tech literate, and official docs recommend using deno, which maybe counterintuitive to node Since official docs want a deno elf in the same folder/added to PATH Where else node can be globally installed via dnf and allows automatic updates
*waydroid do not prefill their urls
Until two days ago I could use version 2025.12.08 of yt-dlp in Fedora 43. It doesn't work today: yt-dlp https://www.youtube.com/watch?v=9RVT8_6xTis [youtube] Extracting URL: https://www.youtube.com/watch?v=9RVT8_6xTis [youtube] 9RVT8_6xTis: Downloading webpage WARNING: [youtube] No supported JavaScript runtime could be found. Only deno is enabled by default; to use another runtime add --js-runtimes RUNTIME[:PATH] to your command/config. YouTube extraction without a JS runtime has been deprecated, and some formats may be missing. See https://github.com/yt-dlp/yt-dlp/wiki/EJS for details on installing one [youtube] 9RVT8_6xTis: Downloading android sdkless player API JSON [youtube] 9RVT8_6xTis: Downloading web safari player API JSON WARNING: [youtube] 9RVT8_6xTis: Some web_safari client https formats have been skipped as they are missing a url. YouTube is forcing SABR streaming for this client. See https://github.com/yt-dlp/yt-dlp/issues/12482 for more details [youtube] 9RVT8_6xTis: Downloading m3u8 information WARNING: [youtube] 9RVT8_6xTis: Some web client https formats have been skipped as they are missing a url. YouTube is forcing SABR streaming for this client. See https://github.com/yt-dlp/yt-dlp/issues/12482 for more details [info] 9RVT8_6xTis: Downloading 1 format(s): 248+251-1 ERROR: unable to download video data: HTTP Error 403: Forbidden Reviewing the developers' website, version yt-dlp 2026.01.29 was published today.
*** Bug 2440553 has been marked as a duplicate of this bug. ***
IMO things should "just work" without user having to install some additional software from outside Fedora. From upstream docs, I understand yt-dlp can use NodeJS as the JS engine, so why not try using the packaged nodejs? In parallel, I'm working on enabling the "impersonation" feature (https://github.com/yt-dlp/yt-dlp#impersonation). I have curl_cffi packaged locally, but curl-impersonate is a bit more difficult due to it being a patched curl fork.
*** Bug 2476441 has been marked as a duplicate of this bug. ***
*** Bug 2480429 has been marked as a duplicate of this bug. ***
Some work is in https://git.sr.ht/~gotmax23/rpm-python-yt-dlp-ejs. I'll work on a Copr and package review for this.
(In reply to Dominik 'Rathann' Mierzejewski from comment #9) > From upstream docs, I understand yt-dlp can use NodeJS as the JS engine, so > why not try using the packaged nodejs? FWIW, this actually works (--js-runtimes node).
Right, but we can't make that the default in Fedora unless we package yt-dlp-ejs because otherwise it downloads pre-built Javascript blobs.
Review request posted: https://bugzilla.redhat.com/show_bug.cgi?id=2486100
Maybe it would be preferable to package this: https://github.com/ahaoboy/ytdlp-jsc https://dev.to/ahaoboy/ytdlp-jsc-a-js-challenge-solver-without-runtime-dependencies-3ag3
What is the current status of getting Fedora to package `yt-dlp` and the **required** dependencies, like `yt-dlp-ejs` and the recommended `deno`? If the `yt-dlp` dependencies are not planned to get included with the proper Fedora repos any time soon, **what is the accepted and recommended method to install and update the year-long required dependencies?** We are very soon going to reach the end-of-life (EOL) date for Fedora 43 (December 9, 2026). https://fedorapeople.org/groups/schedule/f-43/f-43-key-tasks.html As far as I can tell, Fedora 43 repos are the last ones to contain the package versions of yt-dlp, before the package change requiring the javascript challenge solver. It would be very much preferred if the updates and dependant packages came from **official** Fedora repos. Like the original reporter here, I am not pleased to use the `deno` method of `curl | sh`. I know there exists the "Terra" repo. And that one appears to contains both `yt-dlp-ejs` and the recommend `deno` packages. https://fedora.pkgs.org/43/terra/python3-yt-dlp-ejs-0:0.8.0-1.fc43.noarch.rpm.html https://fedora.pkgs.org/43/terra/deno-0:2.9.5-1.fc43.x86_64.rpm.html If the `yt-dlp` dependencies are not planned to get included with the official Fedora repos any time soon, **what is the accepted and recommended method to install and update the year-long required dependencies?** P.S. Thank you @Maxwell for maintaining `yt-dlp` all these years, (as well as the other maintainers). It is definitely appreciated.
FEDORA-2026-336a30148d (yt-dlp-2026.08.19-2.fc46) has been submitted as an update to Fedora 46. https://bodhi.fedoraproject.org/updates/FEDORA-2026-336a30148d
FEDORA-2026-336a30148d (yt-dlp-2026.08.19-2.fc46) has been pushed to the Fedora 46 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2026-a0d06f1c18 (python-yt-dlp-ejs-0.8.0^20260524.d60b824-2.fc45 and yt-dlp-2026.08.19-2.fc45) has been submitted as an update to Fedora 45. https://bodhi.fedoraproject.org/updates/FEDORA-2026-a0d06f1c18
FEDORA-2026-0e7b79f5aa (python-yt-dlp-ejs-0.8.0^20260524.d60b824-2.fc44 and yt-dlp-2026.08.19-2.fc44) has been submitted as an update to Fedora 44. https://bodhi.fedoraproject.org/updates/FEDORA-2026-0e7b79f5aa
FEDORA-2026-0e7b79f5aa has been pushed to the Fedora 44 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-0e7b79f5aa` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-0e7b79f5aa See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2026-a0d06f1c18 has been pushed to the Fedora 45 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-a0d06f1c18` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-a0d06f1c18 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
This is currently broken, as was pointed out by @nucelo in the F44 Bodhi update (https://bodhi.fedoraproject.org/updates/FEDORA-2026-0e7b79f5aa#comment-4807078). WARNING: [youtube] [jsc:node] Hash mismatch on challenge solver lib script (source: python package, variant: ScriptVariant.MINIFIED, hash: 91453929a13588a5d9572549088b482a5e43f673bd21c4e8ce06eefca23a3802247797ac80fbff5bb0d1b20054e7976bec337aa9a3620a95d115b3773f0e0698)! I have a patch to disable the hash checking in this case (https://paste.sr.ht/~gotmax23/783fa985893ffb5218fdc7cf0e4b7c3c8e9208c0) so that yt-dlp will use the new Fedora python3-yt-dlp-ejs package, which is the cause of the first error, but it turns out the package is still broken due to an upstream bug. After applying the patch, there is a new error. The current python3-yt-dlp-ejs RPM is built from an upstream git snapshot so we could take the changes to use esbuild to build the javascript sources, instead of rollup which is not packaged for Fedora, but it turns out https://github.com/yt-dlp/ejs/commit/2231f1fd6e13aa88ee9b3af7a3193a81e07e6a27 (contains the switch to esbuild) produces a broken build that throws errors: WARNING: [youtube] [jsc] Error solving n challenge request using "node" provider: Error running node process (returncode: 1): node:internal/modules/cjs/loader:1433 throw err; ^ Error: Cannot find module 'meriyah' Require stack: - /home/gotmax/[stdin] at Module._resolveFilename (node:internal/modules/cjs/loader:1430:15) at defaultResolveImpl (node:internal/modules/cjs/loader:1040:19) at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1045:22) at Module._load (node:internal/modules/cjs/loader:1216:25) at wrapModuleLoad (node:internal/modules/cjs/loader:254:19) at Module.require (node:internal/modules/cjs/loader:1527:12) at require (node:internal/modules/helpers:147:16) at [stdin]:64:712 at [stdin]:135:116 at runScriptInThisContext (node:internal/vm:209:10) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/gotmax/[stdin]' ] }. So this needs more digging. We can try to fix the esbuild configuration on upstream's development branch or go back to the release version (v0.8.0) and figure out how to build with rollup in Fedora. https://copr.fedorainfracloud.org/coprs/gotmax23/yt-dlp/build/11198943/ was my attempt at the latter, but it turns out rollup includes some pre-built binaries when using the vendored npm packages which is not allowed.
(In reply to Wind from comment #17) > ... > **what is the accepted and recommended method to > install and update the year-long required dependencies?** > > We are very soon going to reach the end-of-life (EOL) date for Fedora 43 > (December 9, 2026). > https://fedorapeople.org/groups/schedule/f-43/f-43-key-tasks.html I can see that you are trying to make the new `ejs` package work. But there are some issues to work out. Only Fedora 43 contains the working `yt-dlp` package (which does not require `ejs` and a JS runtime). And in 11 days, Fedora 43 *will* be unsupported. Upgrading to Fedora 44+ meaning losing the working non-JS-runtime version of `yt-dlp`. Please advise Maxwell G; what is the accepted and recommended method to install and update the required dependencies? Is using the Terra repo acceptable and recommended for installing the required `ejs` and JS runtime packages?
python3-yt-dlp-ejs was never pushed to Fedora 44 or 45 and is not a hard requirement of the yt-dlp package. None of the Fedora versions' yt-dlp packages currently pull in a JS runtime. Tera is a third-party repository with different maintainers, so if you have questions about Tera packages, you'd have to contact their maintainers. Fedora packages are maintained by volunteers, so adding NEEDINFO does not move things along any faster. Please avoid doing that. If you can contribute a Packaging Guidelines–compliant solution, that would be welcome, or using an alternative source for the ejs scripts (such as --remote-components ejs:github --js-runtimes node) is still a valid workaround until yt-dlp-ejs is properly packaged in Fedora.