LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   F16 - how do I tell system not to automatically load kernel updates? (http://www.linuxquestions.org/questions/fedora-35/f16-how-do-i-tell-system-not-to-automatically-load-kernel-updates-4175438175/)

rmknox 11-21-2012 04:03 PM

F16 - how do I tell system not to automatically load kernel updates?
 
Right now F16 automatically loads updates to the kernel.

I am eager to load faulty kernels under my control since it could disable the system when I am not present to fix it

Prior Fedoras had a file in /etc where you told yum that it was or was not authorized to do updates automatically. as I rec file name had a sd in it

With f16 how do I tell system whether it can do automatic updates, and if so when to do them?

Is there a place in the fedora documentation that tells this?

Suggestions svp.

Dick

dinkus223 11-21-2012 05:21 PM

/etc/sysconfig/kernel has an option, UPDATEDEFAULT, to make new kernels the default. Setting it to no will keep newly installed kernels from beings loaded automatically. Fedora's web documentation The Sysconfig Directory has info on the directory and other config files. The kernel file is not listed.

rmknox 11-21-2012 10:09 PM

Quote:

Originally Posted by dinkus223 (Post 4834342)
/etc/sysconfig/kernel has an option, UPDATEDEFAULT, to make new kernels the default. Setting it to no will keep newly installed kernels from beings loaded automatically. Fedora's web documentation The Sysconfig Directory has info on the directory and other config files. The kernel file is not listed.

dinkus233 - thanks so much

From your description I would assume that the system will continue to accept and build new kernels, and put the implementing language in the grub config file, but not have the parameter which tells which one is the default point to the new one? Oops - looks like grub2 is different from grub in this respect - I don't see variable named default? As I recall grub had a zero based numbering system so default=0 got the first on in the file etc?

Post Script: Occurred to me that maybe 0 is the default value for the parameter "default" so I tried default=1 and it selected the second kernel on the list. That mystery is solved.

Berhanie 11-22-2012 10:35 PM

if you don't want yum to update your kernel in the first place, you can add the following line to the "fedora" and "updates" repo configs in /etc/yum.repos.d/{fedora.repo,fedora-updates.repo}
Code:

exclude=kernel*

rmknox 11-27-2012 10:59 PM

Quote:

Originally Posted by Berhanie (Post 4835197)
if you don't want yum to update your kernel in the first place, you can add the following line to the "fedora" and "updates" repo configs in /etc/yum.repos.d/{fedora.repo,fedora-updates.repo}
Code:

exclude=kernel*

dinkus223 and Berhanie - thanks so much.

Is there a way that I can cause all automatic updates to stop?

In the past - when I was ready for it - I would
Code:

sudo yum update
review the list and respond y or n

the advantage is that your system does not become unusable or unstable when your family is using it but only when you want it to and have the time to deal with problems that may arise

is this automatic process controlled by chron? if not it must originate somewhere on my system?

Post Script
I've been digging and it appears that /usr/libexec/gnome-settings-daemon updated my kernel on 11/14 using PackageKit.
per
http://forums.fedoraforum.org/showthread.php?t=277825
the answer is to uninstall packageKit
they recommend
Code:

rpm -e --nodeps PackageKit
Will remove packagekit but leave the dependencies intact.

Any reactions or recommendations?

Having my system updated not under my control is distasteful to me. I would not have signed onto the Fedora system if I had known that they did this. It appears to me to be relatively new.

Berhanie 11-28-2012 05:49 AM

on gnome, you can set your update preferences in Applications -> Other -> Software Setting.

rmknox 11-28-2012 10:08 AM

Quote:

Originally Posted by Berhanie (Post 4838627)
on gnome, you can set your update preferences in Applications -> Other -> Software Setting.

Fantastic - who would have guessed - in "other"

Thanks so much

Could I have found this in the documentation somewhere?

Berhanie 11-29-2012 03:17 AM

Quote:

Fantastic - who would have guessed - in "other"
in Activities, you can type "software" and get a list of related applications.

Quote:

Could I have found this in the documentation somewhere?
see here.


All times are GMT -5. The time now is 07:26 AM.