• AA5B@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    8 hours ago

    This is one of the reasons I need to set up Linux at home. I use it at work but who knows what the flavor of the week is?

    At this point I can’t tell the difference between yum and rpm and apt and dnf

    • mlg@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      6 hours ago

      Edit: realized you meant in the sense of hot swapping flavors after I typed out a whole explanation lol. Should start recommending niche distros and collect package managers like trading cards lol.

      yum = dnf, dnf is just the newer version which was rewritten several times.

      apt is a weird attempt to “upgrade” apt-get with better user interface without messing with the compatibility of apt-get used by scripts and whatnot.

      Both of these are dependency handling package managers which do all the magic of installing required subpackges when you want something.

      rpm is the underlying system package manager which deals with the actual task of installing, removing, and generating packages in the .rpm format. It is analogous to Debian’s dpkg which uses the .deb format. It’s usually not used by the end user unless you need to play with a package directly like with a .rpm or .deb file.

      Hence why some distros (or people) have their own dependency package manager, like zypper on OpenSUSE (rpm) or Aptitude on Debian (deb).

      Although I think Aptitude might just be a fancy wrapper for apt lol.

    • embed_me@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      6 hours ago

      Me too but I am just zen at this point knowing the knowledge is one search away (I don’t even have to read the man)

  • Matombo@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    8 hours ago

    apt-get has a fixed format machine parseable output

    apts output tries to be more human readable and is subject to change

  • Barometer3689@feddit.nl
    link
    fedilink
    arrow-up
    0
    ·
    10 hours ago

    jesus I feel old, and I am only in my 30s. I remember not having apt. How young are linux users nowadays?

    • bluewing@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      7 hours ago

      I got tennis shoes older than you, (literally a pair of original Converse I bought new back in the 1970s). I was there before the original chains of Unix, DOS, and finally Linux were foraged. I saw OS2 die in battle. And I saw the dark time of when paper and pencils and slide rules vanished from this earth.

      The knowledge of apt-get and apt only matters to those warriors of the Cli when they wield the sword of sudo to vanquish the evils that exist when upgrading. For they do the bidding of the dark wizards of Dev, holders of the command su.

      Now that I have demonstrated my age by showing everyone how senile I am. ‘apt install’ is aimed at users to give a nicer response to it’s use. It need not be backwards compatible either. ‘Apt-get install’ is older and is meant to be usable as a lower level command and to work with other APT based tools.

      What does this mean for you today? Not a damn thing. I still always type: sudo apt-get install when using a deb based dsitro out of sheer habit. But it’s not needed the vast majority of the unwashed masses. So feel free to just type apt install to help prevent carpel finger nail.

    • splendoruranium@infosec.pub
      link
      fedilink
      English
      arrow-up
      0
      ·
      10 hours ago

      jesus I feel old, and I am only in my 30s. I remember not having apt. How young are linux users nowadays?

      Well… how old were you when you got your first computer? That young.

      • rumba@lemmy.zip
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 hours ago

        Dicey proposition, some mid and older genX grew up before home computers were commonplace.

        When I was in my tweens, only really affluent people had computers. Schools had one single computer in a classroom or maybe a couple in a lab, and almost no one was computer literate.

      • easily3667@lemmus.org
        link
        fedilink
        English
        arrow-up
        0
        ·
        8 hours ago

        Nah a lot of people now think screen time is bad without evidence. Never would be allowed to get on a computer at 3-4.

        • splendoruranium@infosec.pub
          link
          fedilink
          English
          arrow-up
          0
          ·
          6 hours ago

          Nah a lot of people now think screen time is bad without evidence. Never would be allowed to get on a computer at 3-4.

          You had your own computer before you could read…?

          • easily3667@lemmus.org
            link
            fedilink
            English
            arrow-up
            0
            ·
            6 hours ago

            I didn’t claim to understand it but I do claim to remember my sister trying to explain it to me, and that computer only existed during a certain time period.

        • dustyData@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          8 hours ago

          Excessive screen time at 3 is bad, and we do have evidence. Computers from the 80s we grew up with have nothing in common with today’s highly advanced skinner boxes. It has been so since the age of TV, but today’s tech is worse. They fuck up cognitive and social development really bad. Using screens from time to time is fine, but having a tablet in your face every waking minute hurts even adults.

  • DonutsRMeh@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    20 hours ago

    apt is a newer, more user-friendly front-end for apt-get and apt-cache.

    apt = combines commands like install, remove, update, upgrade into one tool, with prettier output

    #apt-get = older, lower-level, more script-friendly For normal use, just use apt now. For scripting where 100% backward compatibility matters, use apt-get.

  • trolololol@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    20 hours ago

    I came in for the jokes but all I found was helpful responses. Did I get the Nazi virus from Reddit?

  • Matriks404@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    22 hours ago

    Isn’t this explained in the manpages for apt(8) and apt-get(8)?

    Do people don’t read their manuals anymore?

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

    These days, apt is for humans whereas apt-get is for scripts. apt’s output is designed for humans and may change between releases, whereas apt-get is guaranteed to remain the consistent to avoid breaking scripts.

    apt combines several commands together. For example, you can use it to install packages from both repos and local files (e.g. apt install ./foo.deb) whereas apt-get is only for packages from repos and you’d need to use dpkg for local packages.

    • nelson@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      24 hours 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 ).

      • dan@upvote.au
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        21 hours 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 née 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
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          9 hours ago

          @[email protected]

          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
            link
            fedilink
            arrow-up
            0
            ·
            4 hours ago

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

      • themoonisacheese@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        22 hours 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
          0
          ·
          21 hours 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?

          • themoonisacheese@sh.itjust.works
            link
            fedilink
            arrow-up
            0
            ·
            13 hours 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
              0
              ·
              10 hours 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.

          • bisby@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            20 hours 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.

            • Fushuan [he/him]@lemm.ee
              link
              fedilink
              arrow-up
              0
              ·
              10 hours ago

              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

  • Empricorn@feddit.nl
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 day ago

    I know about these and git and flatpaks and snaps and can definitely explain them all to you! But unfortunately, I just remembered I left my oven on…

    • Victor@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 day ago

      Here lies dragons. Make sure you understand commands that you run on your computer. 👍

        • Rhaedas@fedia.io
          link
          fedilink
          arrow-up
          0
          ·
          1 day ago

          People don’t change. Some people look at what they’re repeating and try to understand the why, others blindly do what they are told by whom they deem as authority. LLMs are the latest, earlier were various websites (which LLMs were trained on, uh oh), still before that were the computer magazines with things to type in and the later versions even maybe a free CD of stuff. The printed media was less likely to have malicious things in them, but lord did they have errors, and the right error in the wrong place could ruin someone’s day if they just ran it without understanding it.

  • truthfultemporarily@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    1 day ago

    The binary is called apt-get. There are others like apt-cache etc.

    Apt is a script that just figures out which binary to use and passes the arguments on.

    • apt update -> apt-get update
    • apt policy -> apt-cache policy
    • grrgyle@slrpnk.net
      link
      fedilink
      arrow-up
      0
      ·
      1 day ago

      You know, I thought I knew why, but this was new information to me, so I guess I didn’t.

      Thanks for sharing this concise explico!