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.

10 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
9 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
6 points

It’s best to install yt-dlp manually and let it self update. It needs to be kept on the latest version since youtube is constantly breaking things. It’s only a single file and it can be installed in any directory in your $PATH.

permalink
report
reply
3 points

This is the way.

permalink
report
parent
reply
6 points
*

The latest yt-dlp is in bookworm-backports.

https://wiki.debian.org/Backports

permalink
report
reply
3 points
*

What you are doing: adding the unstable repository to your Debian system. Debian has three levels of software stability, stable, testing and unstable.

Stable does what is says on the tin. It’s stable, but older. Testing is gonna be the next major version when it’s deemed stable enough to be called stable. Unstable is for trying out new shit and seeing what breaks. It has the most recent packages and the most problems.

Stable and testing will be named after different characters from Toy Story, unstable will always be named after the character “Sid” from Toy Story.

In the context of what you’re trying to do, you are fucking up.

Yt-dlp can (and should in most cases) update itself by using the command “yt-dlp -U”. But it will only update itself that way if you manually install it from the git page.

You can do this by downloading it and putting it somewhere in your users $path. This is just like putting a program folder in windows in c:\program files and making a start menu entry manually, except you won’t make the start menu entry because your shell will always look in $path to see if it can run what you just typed. If you’re familiar with Macs, it’s literally like copying the program to your applications directory.

There’s instructions how to manually install on the yt-dlp git.

You should do yt-dlp this way unless you have a good reason to use the Debian repos or pip.

E: once you get yourself straightened out, make sure to add “yt-dlp -U” to all your scripts before they actually run. It keeps you from getting the wrong quality profile or downloads from failing or whatever.

permalink
report
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

  • 43

    Monthly active users

  • 3.3K

    Posts

  • 19K

    Comments