• Cat_Daddy [any, any]@hexbear.net
    link
    fedilink
    English
    arrow-up
    0
    ·
    9 months ago

    Pacman sucks ass and this is a hill I will die on. Sure, it’s fast, but there’s such a thing as too fast. Like when I was updating the system once and it decided to delete bash to replace it, but it couldn’t replace it because bash was gone already and my shell died since that’s what I was logging in with. Oops! System is completely unusable now, got to reinstall arch again, because pacman pulls stunts like this.

    • deadcade@lemmy.deadca.de
      link
      fedilink
      arrow-up
      0
      ·
      9 months ago

      This type of shit happens if you intentionally mess up your own system (or use Manjaro). pacman requires extra confirmation (instructions only found in its man page) before even allowing you to delete bash (base requires it). bash has also never been replaced, and even if you deleted it, it would still be loaded in RAM. Even still, if you deleted it and immediately rebooted, it would be a quick fix for anyone familiar with the distribution they’re using, and would not require reinstalling the whole thing.

      • Cat_Daddy [any, any]@hexbear.net
        link
        fedilink
        English
        arrow-up
        0
        ·
        9 months ago

        You would think that, but it happened to me several times over the course of about five years, with different parts of the core of the os. Granted, this was back when arch was in its infancy, before systemd was even a thing, so pacman may be smarter now. But I’ve completely written it off since it happened so many times. And reinstalling arch back them took the better part of a weekend, so it’s not like it was an easy fix.

  • Zanka@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    9 months ago

    Fedora: sudo dnf update, type the letter y, done.

    I don’t understand why apt still has update and upgrade as two separate things.

      • deadcade@lemmy.deadca.de
        link
        fedilink
        arrow-up
        0
        ·
        9 months ago

        Since lowercase y as an option to uppercase S already exists to update the database, --noconfirm exists to continue without user confirmation.

    • zewm@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 months ago

      I’m more of a fan of just adding the -y parameter to skip the question and go straight to updating. Works with the install command too.

      • Ephera@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        9 months ago

        You can have a separate refresh/update command and still make the upgrade-command auto-refresh.

        (You can also have a --no-refresh flag on the upgrade-command, in case you don’t want the refresh for whatever reason.)

    • Cat_Daddy [any, any]@hexbear.net
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      9 months ago

      zypper is unironically the best package manager. Absolute s-tier god-mode. It’s slow as hell, but that’s because it makes atomic updates. If the install doesn’t go well, it just rolls it back. I fucking love zypper, and I want to shake the hands of the people responsible for it.

  • Matriks404@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    9 months ago

    Debian users:

    What do you mean by PPA?

    Also: apt-get is intended as low-level APT interface for scripts, just use apt instead. I get why people are confused nowadays, because APT documentation is terrible.

    • MonkderVierte@lemmy.zip
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      9 months ago

      apt-get is intended as low-level APT interface for scripts

      Ah, that’s what they call it now.

      I wonder to what they degraded dpkg then?

    • notarobot@lemmy.zip
      link
      fedilink
      arrow-up
      0
      ·
      9 months ago

      I thought apt-get was a transitional command made so that the devs could make a breaking change, but now that that is done, its no longer needed

  • PieMePlenty@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    9 months ago

    Never had an update break on headless Debian. Even when switching from 12 to 13. That shit is solid.
    I’m getting used to arch on my main desktop and I still can’t figure out why the hell “sync” is the wording pacman uses for updating or why ‘y’ is refresh. Sync refresh upgrade my ass. I will admin, it is fast.

    • Brahvim@lemmy.kde.social
      link
      fedilink
      isiZulu
      arrow-up
      0
      ·
      edit-2
      9 months ago

      I did it on the GUI all day yesterday! The only problem Debian has is being unbreakable!

      Heck, I switched repos from bookworm to trixie and installed 3 GiB worth of packages - 2.5k packages - and booted into a PERFECTLY WORKING system!

      Installed the other 8 GiB afterwards and booted into a perfectly working system. Just before I thought Steam was broken, I rebooted and it came alive too.

      And my GTX 1650 worked right away! Do you know how many times the daily 1 GiB update on Ubuntu breaks that?!

      Flatpak updates are kinda’ slow, no 4 GiB downloads needed per day, Debian updates arrive at like 200 MiB a month except for apps like VSCode, Signal, or Discord. And - to be honest - that’s the Windows-unlike experience every distro is missing.

      Debian really is unbreakable.

    • hperrin@lemmy.ca
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 months ago

      Because you’re “sync”ing with the state of the repo. You’re not necessarily upgrading. Sometimes the repos have a lower version than what you have, so you would be downgrading in that case. Or sometimes you’re just using it to install a new package and its dependencies.

      -u is upgrade. And -uu is upgrade or downgrade. It’s used to filter the packages that sync operates on, so basically you’re syncing any packages that have a different version than the repo.

      -y for refresh? No idea. -r is root, so I guess it was already in use by the time someone added refresh?

  • Comrade_Squid@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    Using Debian as my main laptop distro, I am usually an arch user but figured with it being a light weight laptop I wouldn’t need arch, its been fine but installing updates can be frustrating, after a few weeks gnomes appstore breaks, then I need to use terminal to apt update, apt --fix-broken install.

    • Hirom@beehaw.org
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      9 months ago

      Which Debian distribution are you using, stable, testing, unstable?

      I take care of a couple machines for family members. Those have Debian stable with automatic update (unattended-upgrade). I can’t recall the system or packages ever breaking. At most users are a bit confused when an update change the UI a bit.

      Sticking to stable and avoiding third party repos gives a pretty solid system. Only developers or sysadmins might consider Debian testing. Only people working on Debian itself should use unstable.

    • Malgas@beehaw.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 months ago
      nix flake update
      nix flake check --no-build
      git commit -a
      nh os switch
      

      Is the routine I’ve settled into. Flake update because I use flakes, flake check because it’s easier to see any warnings about deprecated options and the like so I can fix them preemptively, git commit after the check to avoid back-to back commits where the second is fixing some issue with the first, and nh because I like the pretty dependency graph and progress bar.

      • NuclearDolphin@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        9 months ago

        Lots of useful stuff here. Taking all of it.

        Does nh use fast-nix-build (or whatever the fancy nix builder CLI is called) to build your system?

    • ragas@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      9 months ago

      sudo emerge -avuDUg world

      –changed-use, -U:

      • Tells emerge to include installed packages where USE flags have changed since installation. This option also implies the –selective option. Unlike –newuse, the –changed-use option does not trigger reinstallation when flags that the user has not enabled are added or removed.

      –getbinpkg [ y | n ], -g:

      • Using the server and location defined in PORTAGE_BINHOST (see make.conf(5)), portage will download the information from each binary package found and it will use that information to help build the dependency list. This option implies -k. (Use -gK for binary-only merging.)
  • pewpew@feddit.it
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    That’s because you have to use

    apt
    

    , not apt-get. Yes, there is a difference