this post was submitted on 27 Apr 2025
826 points (98.4% liked)

linuxmemes

24670 readers
2050 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] fluckx@lemmy.world 73 points 1 day ago (2 children)

    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 34 points 1 day ago (3 children)

    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

    And here I am using gdebi for those kinds of local packages...

    [–] jaybone@lemmy.zip 2 points 1 day ago

    Same with Zoom.

    [–] fushuan@lemm.ee 2 points 1 day ago (2 children)

    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 9 points 1 day ago (1 children)

    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.

    [–] fushuan@lemm.ee 3 points 1 day ago (1 children)

    I didn't know, thanks! I guess in hindsight I meant "official" as in, it's not just some rando, I can trust it won't break, and I don't have to manually download the stuff every time xD

    [–] bisby@lemmy.world 2 points 18 hours ago

    Yep! All those things are true, but it's due to the hard work of the archlinux team and not discord doing anything valuable. The debian/ubuntu/etc team could probably repackage the tar.xz or include the deb file in their official repos if they wanted. They just don't. And given how simple the workaround is, i don't really blame them. Debian isn't going to ship something that will require constant updating to work with remote servers, and ubuntu probably just wants you to use a snap anyway.

    The archlinux team is just pretty cool.

    [–] themoonisacheese@sh.itjust.works 1 points 1 day ago (1 children)

    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@lemm.ee 7 points 1 day ago (1 children)

    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.

    The nightmare in question is windows. My point was that since their client isn't distributed by a mechanism with automatic updates, they could at least have made it work, but no.

    [–] dan@upvote.au 10 points 1 day ago* (last edited 1 day ago) (1 children)

    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 :)

    [–] Successful_Try543@feddit.org 3 points 1 day ago* (last edited 1 day ago) (1 children)

    @fluckx@lemmy.world

    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

    Usually installing a manually downloaded package and its dependencies works like this:
    # dpkg -i package-file.deb
    # apt-get -f install

    So apt-get can be used to install missing dependencies afterwards while marking them as automatically installed.

    [–] dan@upvote.au 4 points 21 hours ago (1 children)

    That works, but why do that when you could just do apt install ./package-file.deb?

    [–] Successful_Try543@feddit.org 1 points 21 hours ago

    Sure, but as I understood, the question was how to do that "properly" with dpkg and apt-get, i.e. without the 'new' apt script.