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.

  • GustavoM
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    8 months ago

    Just install it via pip and then symlink its binary file to /usr/bin.

    t. Am running a live stream 24/7 on my orange pi zero 3 (via ffplay/yt-dlp) since forever.

    “Why not simply add $HOME/.local/bin to $PATH?”

    Because it breaks things. While symlinking it does not.

    “Why?”

    No idea, honestly.

    Also, you can take a step further and make a tmpfs partition @ $HOME/.local and then add the following line to your .bash_profile file: TMPDIR=$HOME/.local pip install --break-system-packages -I --no-input yt-dlp &&.

    • Eager Eagle
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 months ago

      use pipx install or your distro’s package instead of pip install --break-system-packages

      • GustavoM
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 months ago

        Apparently pipx dislikes tmpfs partitions, so nah.

        • Eager Eagle
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 months ago

          why would you want to nuke your installed cli apps on every boot with a tmpfs

          • GustavoM
            link
            fedilink
            English
            arrow-up
            1
            ·
            8 months ago

            Eh, it’s a tradeoff that I get in exchange of a longer microsd lifespan. Which I’m completely fine with.