• DonutsRMeh@lemmy.world
    link
    fedilink
    arrow-up
    109
    arrow-down
    1
    ·
    12 days 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.

    • Captain Aggravated@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      11 days ago

      If I recall correctly, Linux Mint did their own thing for a bit with the apt command so there were two different implementations out there for awhile?

      • DonutsRMeh@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        11 days ago

        I don’t know if they modified apt at all. I know they have their mint tools that call apt through some python code, like mintinstall = apt install <package> for the software manager and mintupgrade = apt upgrade for updating mint versions … Etc

  • four@lemmy.zip
    link
    fedilink
    English
    arrow-up
    15
    ·
    12 days ago

    When working with RHEL I always flip a coin to see if I’m gonna use yum or dnf this time

  • trolololol@lemmy.world
    link
    fedilink
    arrow-up
    12
    arrow-down
    1
    ·
    12 days ago

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

  • pulsewidth@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    11 days ago

    How my brain distinguishes them:

    apt-get when you want full verbose output

    apt when you want to feel fancy with progress bars and colours

    • mrsingh@sh.itjust.works
      link
      fedilink
      arrow-up
      6
      ·
      11 days ago

      apt install nano (simple, clean)

      apt-get install nano (works too, but more detailed output)

      Apt-get give more technical output , helps in scripting .

  • AA5B@lemmy.world
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    12 days 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
      8
      arrow-down
      1
      ·
      edit-2
      11 days 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
      2
      ·
      11 days 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)

      • AA5B@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        11 days ago

        I’ve had better results by including “man” in my searches to find the man pages, but man that makes for some questionable looking searches

  • keen@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    11 days ago

    Use apt in the shell and use apt-get in scripts, because apt has beautiful shell output but it isn’t script safe

  • themeatbridge@lemmy.world
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    11 days ago

    apt is for like when you want to, and apt get is the other way to get the apt. And then if it doesn’t, sudo apt will, or then sudo apt get. Like if you’re just doing an apt, and then you also need to apt get, you can.

  • harmsy@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    8 days ago

    It’s been a long time since I’ve needed to use either. Instead I typically use Synaptic Package Manager, Mint’s Software Manager, or gdebi. Guess I’m just a filthy casual.