LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 01-19-2020, 10:24 AM   #1
thethinker
Member
 
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 342
Blog Entries: 2

Rep: Reputation: 39
Rolling Updates and restarts vs major upgrades


I'm sure this discussion has been had around LQ before, but I wasn't able to find anything specific.

I'm having some irritation around how my Xubuntu system handles updates. I use it on a machine which is up and running for 5-6 days at a time (I keep multiple desktops, dedicated browser tabs, etc, and it takes some time every Monday for me to get it set back up). When Xubuntu updates, it gives me a little gui message, updates, and then tells me the system needs to restart to complete updates. I always "restart later" and do it when it's convenient for me, but if the updates are not actually finished that must be a bad habit.

Contrast this with Slackware, which I run at home, and when I do updates (via slackpkg update etc etc), it never tells me it has to restart (except for new releases, I think. The BDFL ensures that's infrequent :-)).

So is there a distinction between OSs that "update like Xubuntu" and those that "update like Slackware", i.e. need to be restarted? Is it simply a feature of "Rolling Updates"?
 
Old 01-19-2020, 11:38 AM   #2
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Neither Xubuntu nor Slackware is what is called a rolling release. They are both point releases, in that you run version 1, then upgrade to 1.2 and eventually to 2.0, etc. A rolling release such as Arch, Gentoo or avoid, you never have to upgrade because they are always running the latest packages. The caveat is they are not as “stable” as point releases but that may be debatable.

Slackware takes a very conservative approach to updates so probably doesn’t need to be rebooted as frequently as Xubuntu. Xubuntu also updates the kernel, or can anyway, during updates and Slackware typically does not unless you want it to.

Package updates should never affect the data in your user’s /home, unless the package configurations changes are significant and you need to configure from scratch. Think KDE 4 to Plasma migration.
 
1 members found this post helpful.
Old 01-19-2020, 07:36 PM   #3
thethinker
Member
 
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 342

Original Poster
Blog Entries: 2

Rep: Reputation: 39
Quote:
Originally Posted by sevendogsbsd View Post
Neither Xubuntu nor Slackware is what is called a rolling release. They are both point releases, in that you run version 1, then upgrade to 1.2 and eventually to 2.0, etc. A rolling release such as Arch, Gentoo or avoid, you never have to upgrade because they are always running the latest packages. The caveat is they are not as “stable” as point releases but that may be debatable.
Ok this is helpful, to give me an idea that I don't know what rolling release is, because I don't use and distros that do it. Thanks.


Quote:
Package updates should never affect the data in your user’s /home, unless the package configurations changes are significant and you need to configure from scratch. Think KDE 4 to Plasma migration.
Well, I kind of get that, but when the OS *wants* to restart, we should assume it knows what it's doing right? Which is why I find myself with this problem in Xubuntu - it's obviously not designed with ~5 day uptimes, or it would not ask me to restart every couple of days.
 
Old 01-19-2020, 08:18 PM   #4
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
That’s odd. Could have been a bunch of kernel updates or updates that require service restarts. Could be that the Xubuntu folks are trying to make updates easier by requiring a bounce with all updates.

I typically don’t allow the OS to do updates, or at least control them, and I do them on my schedule, which is normally every week. OS updates normally only write files or configs to the OS directories. I have never had Linux affect anything in my user’s /home before.
 
Old 01-19-2020, 08:20 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,414

Rep: Reputation: 4197Reputation: 4197Reputation: 4197Reputation: 4197Reputation: 4197Reputation: 4197Reputation: 4197Reputation: 4197Reputation: 4197Reputation: 4197Reputation: 4197
As a general rule I always disable automatic updates. I don't know xubuntu, but a quick search found several solutions - I don't know which are applicable or maybe out of date by now.
 
1 members found this post helpful.
Old 01-19-2020, 10:37 PM   #6
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: Rocky 9.6
Posts: 5,902

Rep: Reputation: 2294Reputation: 2294Reputation: 2294Reputation: 2294Reputation: 2294Reputation: 2294Reputation: 2294Reputation: 2294Reputation: 2294Reputation: 2294Reputation: 2294
Running CentOS. The update process itself doesn’t prompt me for reboots, but webmin tells me when there’s a kernel update, which does want a reboot. I do them at o’dark thirty on Sunday mornings...it’s a production server...

That happens not very often at all...maybe 5 times in the last year.
 
Old 01-19-2020, 10:40 PM   #7
thethinker
Member
 
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 342

Original Poster
Blog Entries: 2

Rep: Reputation: 39
Quote:
Originally Posted by syg00 View Post
As a general rule I always disable automatic updates. I don't know Xubuntu, but a quick search found several solutions - I don't know which are applicable or maybe out of date by now.
Sure, I'm guessing there are ways you can modify how updates are done, but I usually try to follow distro "defaults" - I mean, who else knows best, right? (not that I follow that advice on Windows, but we should be endeavor to be over THAT bar....). If one distro thinks updates need to happen biweekly, and another doesn't, I'd like to use my market power (such as it is) to choose the one that fits my needs better.
 
Old 01-20-2020, 08:05 AM   #8
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by thethinker View Post
I usually try to follow distro "defaults" - I mean, who else knows best, right? (not that I follow that advice on Windows, but we should be endeavor to be over THAT bar....).
At the moment there are LOTS of kernel updates, because all of the security errors found in newer Intel (and AMD and ARM) cpu's, some distro's follow those more agressive then others. Often they are NOT needed on YOUR system.
But i.e. the 4.4 and 4.9 "stable" kernels already had 210 updates up till now and even the most recent one, 5.4 is at .13 at the moment (in less then 2 months, it was released on 25 november last year).
So especially on servers, that often aren't using those very new desktop cpu's (but more reliable XEON's), you do not need all those reboots, just update your kernel, i.e. once a month or when a very bad bug is fixed.
 
1 members found this post helpful.
Old 01-20-2020, 01:15 PM   #9
thethinker
Member
 
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 342

Original Poster
Blog Entries: 2

Rep: Reputation: 39
Quote:
Originally Posted by ehartman View Post
At the moment there are LOTS of kernel updates, because all of the security errors found in newer Intel (and AMD and ARM) cpu's, some distro's follow those more agressive then others. Often they are NOT needed on YOUR system.
But i.e. the 4.4 and 4.9 "stable" kernels already had 210 updates up till now and even the most recent one, 5.4 is at .13 at the moment (in less then 2 months, it was released on 25 november last year).
So especially on servers, that often aren't using those very new desktop cpu's (but more reliable XEON's), you do not need all those reboots, just update your kernel, i.e. once a month or when a very bad bug is fixed.
So this sounds like very good information - it would be great if distros offered that kind of update customizations. And some of this seems very non-intuitive. For example, my custom update proceedure on my Pop_OS! system (my understanding of which is just re-skinned Ubuntu) goes

Code:
apt-get update
apt-get -y dist-upgrade
apt-get -y autoremove
apt-get -y autoclean

So one might think "dist-upgrade" is the part of this which asks for things that might require restarts (kernal packages I guess?). But when I read the man pages for apt-get, all I see are references to "packages" (anything found at /etc/apt/sources.list). So it doesn't appear possible to separate kernel upgrades from other package upgrades.

Or can they be separated somehow?

Last edited by thethinker; 01-20-2020 at 01:17 PM.
 
Old 01-20-2020, 01:37 PM   #10
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Not in Linux unless you roll your own kernel from source. Some distros allow you to do this but when the source gets updated, you still have to update the kernel anyway. I thought Linux Mint separated out the kernel updates based on how "sensitive" they are? I don't like their update system personally, but it was at least an effort to let the user know "hey, you are about to update a very important part of the OS".

I can't speak to any other BSD except FreeBSD (which is not Linux), but there the OS is separated completely from the user software and uses a different set of tools to update the OS and the end user installed software. Makes for a very stable system for the most part, since software installs can't jack up the system. You can even delete
Code:
/usr/local
in its entirety and the OS will keep on trucking like nothing happened. Your software is gone, but it will still boot so maybe not much point to that...
 
1 members found this post helpful.
  


Reply

Tags
distributions, slackware, ubuntu, updates


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Netrunner Rolling 2015.09 Released With New Plasma 5 And Apps Updates LXer Syndicated Linux News 0 10-04-2015 11:42 AM
New src2pkg release with major feature upgrades gnashley Slackware 9 12-17-2007 07:06 PM
LXer: Jitterbit Announces Major Upgrades to its Open Source Integration Platform LXer Syndicated Linux News 0 11-20-2007 07:41 PM
Computer restarts after syslogd restarts birdseye Linux - General 2 03-05-2006 04:27 AM
Managing security updates and upgrades arobinson74 Slackware 8 10-19-2004 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 09:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration