• nelson@lemmy.world
    link
    fedilink
    arrow-up
    39
    ·
    1 month ago

    Huh TIL.

    I never considered trying to install a package from a local file through apt, but always dpkg. End result is the same of course. The web suggests dpkg rather than apt as well ( or at least the pages I ended up on ).

    • themoonisacheese@sh.itjust.works
      link
      fedilink
      arrow-up
      16
      ·
      1 month ago

      Discord is distributed as a .Deb if you don’t use flatpak because they can’t be bothered to set up a repo.

      The very useful thing about local file install is that unlike dpkg, apt will install dependencies automatically

      • Fushuan [he/him]@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        1 month ago

        Thats weird, they do have an arch official package and that’s the one they usually don’t make because AUR is a thing. Have you checked lately?

        • bisby@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 month ago

          An “official” arch package? The arch package is packaged by the arch maintainers. https://gitlab.archlinux.org/archlinux/packaging/packages/discord

          The maintainers of the PKGBUILD are all arch maintainers, which just downloads the generic .tar.gz file discord provides and puts it in all the places you need for you.

          The “official” arch packages are just PKGBUILDs like the AUR, except prebuilt, managed (and signed) by the arch team.

        • themoonisacheese@sh.itjust.works
          link
          fedilink
          arrow-up
          0
          ·
          1 month ago

          I have checked on every new update because their fuckass client apparently can’t update itself in big 2025 and instead just opens your browser to the download url because that’ll convince people that Linux is great.

          • Fushuan [he/him]@lemm.ee
            link
            fedilink
            arrow-up
            1
            ·
            1 month ago

            Updating itself isn’t really the Linux way of things. The Linux way is to have a centralised place like pacman or apt and to download everything at once. Every app having their own download and update system sounds like a nightmare.

    • dan@upvote.au
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      1 month ago

      apt and apt-get both use dpkg internally, but these days it’s essentially seen as an implementation detail that regular users don’t need to know about.

      dpkg doesn’t resolve dependencies (that’s a feature of apt) which means that if you install a Debian package with dpkg, you’ll have to manually install all dependencies first, and they won’t be marked as automatically installed (so autoremove won’t remove them if they’re not needed any more). Using apt solves that.

      The web suggests dpkg because either the articles are old, or they’re based on outdated knowledge :)