Highlight of my Morning - Blåhaj Lemmy

Lemmy

The poster would be more convincing if you hadn’t inverted apt-get update and apt-get upgrade
😭😭
I mean technically you did “update” the OS. It wasn’t a particularly useful command by going second, but I bet it was fast.
If you run it like that every day you will always be one day behind in packages. Not realy that big of a problem (unless on an internet facing server)

It’s fine! You were trying to show how Windows is better because you can’t make a mistake like that and succeeded!

I’m joking

Maybe OP knew all along that they wanted to use the previous package list to upgrade and fetch the new one after! Maybe we’re all actually inverting it…

(I’m just being silly, I recognize that an old package list would probably cause issues with installing or upgrading packages.)

(I’m just being silly, I recognize that an old package list would probably cause issues with installing or upgrading packages.)

No problems anywhere you can always install older versions from a repo.

Upgrade -> update two days ago and then again today will leave me with exactly the same packages as it would if I ran it correctly the first time and then not at all today. Just the state of two days ago.

That’s the best part of this post. Windows is fully automatic, while on Linux you need to tell apart two terminal commands with confusing naming.
Not necessarily. On Arch it’s just “sudo pacman -Syu” and on Fedora it’s just “sudo dnf update”.
I just type "yay".
I just type “paru”.
I just type help
I just click the “Install Updates” notification when it pops up.
See, it’s super easy on Linux, just different on every distribution.

If you’re too stupid to remember one or two commands there are GUI applications available where you can click “a button” to update your system.

Or make an alias with the update command and name it “update”. This works on every distro.

Ah yes, the way to advocate for Linux is calling users stupid.

If you can’t remember one or two commands then you are in fact stupid. With that said, Linux is for everyone.

There are distros that have auto updates as a feature they ship (Linux Mint comes to mind). There are distros that are basically impossible to break and there are distros where you are responsible for building your own system and keeping it functioning. It all depends on your own needs. Linux gives you the freedom to choose and there are more than one way to do things.

On linux, you can do what you wish. You can use a desktop environment with a GUI software center that pops up a notification that prompts you to install updates. Or update by opening the software center and selecting the ones you want. Or use the terminal commands. Or write an alias so you can type “update” and have it execute all your commands in the right order. And you can use your computer during updates, there’s no mandatory update during shutdown/boot.
If I try to update my GPU while I’m running a game sometimes it falls back to integrated graphics and gets slow+warm til I restart.
Curious what happens in windows now
fun fact: GPU drivers on Windows run in userspace, because MS got fed up with all the blue screens they caused and kicked them out of the kernel. if the GPU driver crashes, the screen will go dark for a second and then flick back on. if the GPU driver can’t restart then Windows will fall back to software rendering.

Which is what you see happening when updating or reinstalling a gpu driver.

Funny thing is, gpu drivers can still cause a bsod by causing fuckups in the directx driver, which ive seen happen :')

On Mint I set up an automatic update schedule and have been double checking it when I think to. All GUI, no terminal commands. So far it’s been seamless. (Knock on wood)
You dont though. Most linux also have an automatic/GUI option.
You think ive touched the apt commands in linux…?
I mean, youre right, but thats because i like to be hands on. Updates i usually install via the updates UI of linux distros ( or is that a debian/ubuntu/mint only thing?) and installations can be done via the software ui so you dont have to know the commands at all hehe
Fully Automatic Update Against Your Will.
Thank you, I mostly use pacman but have Debian (rasbian?) on raspberry pi and was fully willing to believe I’d been updating it wrong this whole time
I mean, it’s definitely faster this way around
Wait I’m confused, did OP invert it or did you?
Op inverted. apt update updates the local package cache of apt so it knows what packages have updates. apt upgrade then installs those updates.
It accurately got them backwards, the same way I always do. :)
Who even uses apt-get these days?
Yeah apt-get is so old it officially misses packages that apt… gets.
Whoa, do you have something to read up on that? I'd be extremely surprised, since apt-get is supposed to be the script-safe variant, i.e. I'd imagine it's the more stable of the two.
apt generally downloads more things than apt-get on my Debian machine. apt-get never broke anything, but I tend to eye it suspiciously now.

It’s actually just personal experience, but I stopped using apt-get a few years back now because I noticed if I did apt after apt-get there would often be a bunch of packages it missed.

Edit: looks like it might be because apt-get can’t satisfy dependencies install new packages when upgrading while apt can since apt is a suite of different apt tools rolled into one.

Yeah I’m reading a little bit on it, and it seems like apt-get can’t install new packages during an upgrade. On initial reading I was thinking there were specific packages it couldn’t download or something, but this makes sense too. Regardless, this is news to me; I always assumed that apt and apt-get were the same process, just with apt-get having stable text output for awk’ing and apt being human-readable. I’ve been using nala for a long time anyway, but this is very useful knowledge.

I’ve been using nala for a long time anyway

Does Simba know about this?

Wait what.

apt-get is made for scripting, apt is interactive. Both should resolve dependencies. dpkg does not resolve them.

But for interactive usage always use apt, guides using apt-get have no idea what they are doing

You’re right, I misspoke, it’s that it can’t install new packages, it can only upgrade existing ones. I guess I was thinking the only reason it would need to install new packages was if that was a new dependency.
apt-get upgrade --with-new-pkgs
Legitimately didn’t know this and occasionally type apt-get just for a bit of frivolity
have been out of the loop for a while. what am I missing, what should I use in the future?
sudo dnf up
yay. permissions for sudo will be asked for automatically.
unattended-upgrades and cron jobs for everything else ftw.
No Linux system of mine upgrades itself without my explicit consent. That’s one of the many reasons why I don’t run Windows.
Setting those up is me explicitly giving my consent for it to upgrade on a schedule.

Yeah alright. That’s one way of looking at it 🙂

I guess what I meant is that I don’t like upgrades that happen without me explicitly requesting each and every one of them, and me watching the upgrade process as it happens for errors.

I never got unattended-upgrades to work for me on the machine I tried it on. Best I could tell, it just didn’t do anything. It was frustrating.

But many years back I set up my raspberry pi with a cron job that was effectively (if not literally) apt update && apt full-upgrade && reboot and that seemed to be working just fine.

It broke some things (horrifically) for me because headers didn’t get updated, modules didn’t get rebuilt.

To make it worse, I didn’t set it up. That shit is disabled now. Defunct. Toast. Never again to run.

You need to edit the config file

I followed a number of guides to try to get it to work. Including doing that. No dice.

I still think it’s probably user error on my part, but I’m still shocked there was no command to effectively “force run an unattended upgrade now” to test that it works correctly.

I even set it up using ansible, should work lol

Install the package, edit the config file, maybe enable a systemd service, maybe not even that

alias up=‘topgrade’
I love topgrade, fantastic piece of software.
sudo apt-get install unattended-upgrades sudo dpkg-reconfigure unattended-upgrades