All I wanted is to install the current yt-dlp (2024.07.16-1) on debian 12.6.

Suggested way to that according to https://packages.debian.org/sid/all/yt-dlp/download is to add that line to that file (etc/apt/sources.list), but do I really need to download the 1600 files that upgrade would entail?

I don’t want to download the tar.gz 'cause upgrading that would be a pain.

19 points

I would advise just creating ~/.bin or ~/.local/share/bin and dropping it in there. As long as you have permission to that directory, yt-dlp should be able to easily update itself.

permalink
report
reply
6 points
*

this is the way. easy. no install. no extra steps. update when you want.

or you can add the ppa that’s listed in the yt-dlp install instructions (scroll down to third-party package managers > apt) and use apt to install it like any other package.

permalink
report
parent
reply
11 points

In best scenario you’ll turn your Debian to SID. Worst case scenario you’ll break your system.

I do not suggest this operation unless you’re sure what you’re doing.

Alternatively you can install yt-dlp using snap or using Nix Package manager

permalink
report
reply
11 points

Debian sid is their unstable branch; it contains all new packages before they are tested. As such, if you try to install updates from it, you’ll likely get a very unstable system.

You can set it up so that you only get a specific package ( https://wiki.debian.org/DebianUnstable#Can_I_use_Sid_packages_on_.22testing.22.3F ), but honestly, if you need the very latest version, I’d recommend just grabbing it from github or wherever. Iirc, yt-dlp has a -U flag which will automatically update it.

permalink
report
reply
9 points

You’re adding the full repository of Debian unstable to your system. This wouldn’t just enable you to install yt-dlp but it would also turn your whole system from Debian stable to Debian unstable on the next update. Total overkill for one package.

permalink
report
reply
2 points
*

https://github.com/yt-dlp/yt-dlp/wiki/Installation

Normally I try to use apt for everything, but yt-dlp is an exception since when you want it, you probably do actually want the latest version. I think the only thing it depends on is python, so simple enough to get it from git one way or another.

PS: Now that I actually look at that page I linked to, I see there’s a PPA repo you could use. I don’t know who runs it or how up-to-date it is, but it’s probably a better bet than what you were trying.

permalink
report
reply
5 points

PPA shouldn’t be used on Debian.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 8.4K

    Monthly active users

  • 6.3K

    Posts

  • 172K

    Comments