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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-19-2020, 10:24 AM
|
#1
|
Member
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 342
Rep:
|
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"?
|
|
|
01-19-2020, 11:38 AM
|
#2
|
Senior Member
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252
|
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.
|
01-19-2020, 07:36 PM
|
#3
|
Member
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 342
Original Poster
Rep:
|
Quote:
Originally Posted by sevendogsbsd
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.
|
|
|
01-19-2020, 08:18 PM
|
#4
|
Senior Member
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252
|
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.
|
|
|
01-19-2020, 08:20 PM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,414
|
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.
|
01-19-2020, 10:37 PM
|
#6
|
LQ Veteran
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: Rocky 9.6
Posts: 5,902
|
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.
|
|
|
01-19-2020, 10:40 PM
|
#7
|
Member
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 342
Original Poster
Rep:
|
Quote:
Originally Posted by syg00
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.
|
|
|
01-20-2020, 08:05 AM
|
#8
|
Senior Member
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674
|
Quote:
Originally Posted by thethinker
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.
|
01-20-2020, 01:15 PM
|
#9
|
Member
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 342
Original Poster
Rep:
|
Quote:
Originally Posted by ehartman
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.
|
|
|
01-20-2020, 01:37 PM
|
#10
|
Senior Member
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252
|
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 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.
|
All times are GMT -5. The time now is 09:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|