It can’t, really. What Linux will do (and Windows won’t) is delete old files and replace them with new ones while they are still in use. But this has two problems.
It can lead to stability issues. See e.g. Firefox, which refuses to open new tabs and can’t shut down cleanly if you update using the package manager while the browser is running. If you replace a binary executable in use and it later tries to load a shared library dynamically, it will get an unexpected version of that shared library which can potentially lead to memory corruption. Similar problem the program tries fork+exec itself to create more instances (like Firefox and Chrome do).
It won’t actually update the running process in memory, so even if you install security fixes your system will still be vulnerable. To be safe after e.g. fixes to libc you really need to reboot your system, but most distributions hide this fact from the user.
Windows could certainly opt for a similar solution as Linux. They just chose a stricter and more reliable model for file locking, for good or bad. For what it’s worth I personally prefer the Linux model, but that’s because I know to reboot my system after updating it. I don’t trust my dad to take that social responsibility so he needs to be forced.
Updating a shared library requires an understanding of which services (and interactive programs) use that shared library. There’s a lot of room for mistakes. So while restarting specific services can be worth it for a high-availability server, for a desktop PC I find it easier and less error-prone to just restart the machine.
Linux distros usually raises a reboot required flag. But thats usually to complete some kernel or system update. Windows just go ahead and reboot on update ruining the workflow.
When you get the message to reboot ignore it and do your work. Then shutdown after doing it. Turn on when you need it the next time. And its all well
I work at night and Windows loves to push Windows Updates at night regardless of my normal work schedule.
Take a trip to the bathroom or just don’t move the mouse for a few minutes and Windows will reboot (fuck whatever you had running) and spent an hour or two installing an update (fuck the rest of your night)
Linux doesn’t ever try to force itself on you like that, it’s a respectable OS
“DAE too many Linux posts?! BRB need to reboot windows for the 30th time today.”
That’s a strawman argument, I can’t remember the last time I had to reboot Windows, and the last few updates have only taken a few minutes. They also install on shutdown most of the time.
I have never had problems with windows updates nor has it never rebooted on me. Dunno what the hate is for, at least windows works without knowing 79 different programming languages and having to scour through git repos from 2002 for drivers just to get a driver compiled for your headset (it wont compile because it requires a bingbong-SDK mainted by a guy from turkey who refuses to update it from 1.95v2 to more recent 1.99-6 which is incompatible with your dial-up modem)
At least that works for you. I’ve never been able to get windows to respect my “active hours.” Especially on my work laptop - I work overnight, and frequently have to open up a command prompt to override the forced scheduled restart. Even though the active hours thing allows you to put in a day that starts at PM and ends at AM, something about my work day crossing over midnight apparently just makes windows shit its diaper.
Edit: Dang, fuck me for just relaying my experience. Didn’t realize we weren’t allowed to criticize the godOS.
From command line it’s “sudo dnf update” for example and if you use flatpak, “flatpak update”, updates everything. Or just click update in software manager.
There are programs that are not compiled/packaged by their developers and you have to do it yourself, but so are on Windows. But for OS from Microsoft noone would mention such program, because compiling on Windows is nightmare in comparason.
C for example was designed for Unix-like systems. More high-level languages have less dependency installing, but still.
Nowadays people run WSL to compile programs for Windows and that says something…
EDIT: To people in responses below, don’t get too engaged to something that can be trolling.
There’s even an Update (technical docs) portal so apps can configure themselves to appear to self-update, without actually having to implement self-updating.
deleted by creator
Plus Linux could update it in the background while the app is running. There’s no reason windows can’t do these things, and yet, it can’t.
It can’t, really. What Linux will do (and Windows won’t) is delete old files and replace them with new ones while they are still in use. But this has two problems.
Windows could certainly opt for a similar solution as Linux. They just chose a stricter and more reliable model for file locking, for good or bad. For what it’s worth I personally prefer the Linux model, but that’s because I know to reboot my system after updating it. I don’t trust my dad to take that social responsibility so he needs to be forced.
Outside of the kennel a reboot is not necessary you just restart the app/service it’s really not rocket science.
deleted by creator
Updating a shared library requires an understanding of which services (and interactive programs) use that shared library. There’s a lot of room for mistakes. So while restarting specific services can be worth it for a high-availability server, for a desktop PC I find it easier and less error-prone to just restart the machine.
You’re wrong about everything
deleted by creator
Linux distros usually raises a reboot required flag. But thats usually to complete some kernel or system update. Windows just go ahead and reboot on update ruining the workflow.
When you get the message to reboot ignore it and do your work. Then shutdown after doing it. Turn on when you need it the next time. And its all well
[This comment has been deleted by an automated system]
There’s a configuration file you can edit to prevent that. The Flatpak configures this automatically for you.
But I think you can ignore it, the updates just will not take effect until you reboot.
I work at night and Windows loves to push Windows Updates at night regardless of my normal work schedule.
Take a trip to the bathroom or just don’t move the mouse for a few minutes and Windows will reboot (fuck whatever you had running) and spent an hour or two installing an update (fuck the rest of your night)
Linux doesn’t ever try to force itself on you like that, it’s a respectable OS
That’s a strawman argument, I can’t remember the last time I had to reboot Windows, and the last few updates have only taken a few minutes. They also install on shutdown most of the time.
Linux bros really a blight on lemmy
Microsoft is a blight on humanity.
Tell that to all the businesses running on it.
I dont give a shit.
I have never had problems with windows updates nor has it never rebooted on me. Dunno what the hate is for, at least windows works without knowing 79 different programming languages and having to scour through git repos from 2002 for drivers just to get a driver compiled for your headset (it wont compile because it requires a bingbong-SDK mainted by a guy from turkey who refuses to update it from 1.95v2 to more recent 1.99-6 which is incompatible with your dial-up modem)
deleted by creator
Hilarious joke 🙄
You’ve never had windows reboot on you for an update? Are you running 3.1 or something?
I’ve never had windows force a reboot and I don’t even turn my PC off at night like the other guy does
I just tell it to schedule a time for the middle of the night and go from there
I think maybe back in the xp/vista days that happened once or twice, but not in well over a decade now
At least that works for you. I’ve never been able to get windows to respect my “active hours.” Especially on my work laptop - I work overnight, and frequently have to open up a command prompt to override the forced scheduled restart. Even though the active hours thing allows you to put in a day that starts at PM and ends at AM, something about my work day crossing over midnight apparently just makes windows shit its diaper.
Edit: Dang, fuck me for just relaying my experience. Didn’t realize we weren’t allowed to criticize the godOS.
deleted by creator
deleted by creator
deleted by creator
From command line it’s “sudo dnf update” for example and if you use flatpak, “flatpak update”, updates everything. Or just click update in software manager.
There are programs that are not compiled/packaged by their developers and you have to do it yourself, but so are on Windows. But for OS from Microsoft noone would mention such program, because compiling on Windows is nightmare in comparason. C for example was designed for Unix-like systems. More high-level languages have less dependency installing, but still.
Nowadays people run WSL to compile programs for Windows and that says something…
EDIT: To people in responses below, don’t get too engaged to something that can be trolling.
There’s even an Update (technical docs) portal so apps can configure themselves to appear to self-update, without actually having to implement self-updating.
Not everyone uses windows just to play solitaire Margret.