- cross-posted to:
- memes@lemmy.world
- cross-posted to:
- memes@lemmy.world
sudo nala upgradeOf course it won’t do anything, you need to update (refresh the index) before you upgrade (download and install updates), silly you
And that’s why I don’t use PPAs, but you do you, I guess…
Yep. I’m on Debian for many years now. Every broken update I can recall was either caused by an undocumented PPA or nvidia drivers (which have finally been fixed, for my card at least)
Or the superior and succinct
paruOr sudo dnf -y upgrade
--noconfirmThis meme brought to you by outdated packages in the official repo
Mfw I get to go through the same yt-dlp steps after a fresh install

Fedora: sudo dnf update, type the letter y, done.
I don’t understand why apt still has update and upgrade as two separate things.
Sometimes you just wanna see what’s out there
You can have a separate refresh/update command and still make the upgrade-command auto-refresh.
(You can also have a
--no-refreshflag on the upgrade-command, in case you don’t want the refresh for whatever reason.)
You can even add the -y flag to skip typing y. Which apparently doesn’t work for pacman judging by the command above
Since lowercase
yas an option to uppercaseSalready exists to update the database,--noconfirmexists to continue without user confirmation.Pacman has the worst CLI flags I’ve ever seen.
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.
God this is the one thing I just hate about Ubuntu. I just avoid ppas now
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.
This type of shit happens if you intentionally mess up your own system (or use Manjaro).
pacmanrequires extra confirmation (instructions only found in its man page) before even allowing you to deletebash(baserequires it).bashhas 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.There’s no way that’s true, right? Surely, the program would be smarter?
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.
Shouldn’t
updatecome beforeupgrade?Yup
Sudo dnf update
That’s ok you can finish it later
Debian users:
What do you mean by PPA?
Also:
apt-getis intended as low-level APT interface for scripts, just useaptinstead. I get why people are confused nowadays, because APT documentation is terrible.Also you usually do update before upgrade, not after
apt-getis intended as low-level APT interface for scriptsAh, that’s what they call it now.
I wonder to what they degraded dpkg then?
Isn’t dpkg just the program that installs DEB files, without handling dependency resolution?
Yes, apt and apt-* use it.
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
Zypper gang, dup!!
[an hour later]
Done!(But actually I like it.)
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.
Totally!!
I’m fully spoiled by it.
(And one of the reasons family and friends happen to run Tumbleweed.)
sudo nix-rebuild switch
This is the way.
uhm, akshually it’s
sudo nixos-rebuild switch --upgradenix flake update nix flake check --no-build git commit -a nh os switchIs 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.
Lots of useful stuff here. Taking all of it.
Does
nhusefast-nix-build(or whatever the fancy nix builder CLI is called) to build your system?I honestly don’t know how nh works under the hood, but it does seem to do concurrent builds, so it’s probably something like that.
Actually
nixos-rebuild switch --sudo.















