 |
 |
 |
 |
| Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc. |

26th January 2012, 09:58 AM
|
|
Registered User
|
|
Join Date: Jan 2012
Location: Netherlands
Posts: 1

|
|
|
Disable automatic updates for ALL users
Fedora does automatically update the system once you log into the graphic environment - which we occasionally use from some (reporting) tools. Now I know that you can disable the automatic updates on a per users basis with "Other -> Software Settings" (or gpk-prefs on the commandline). But we want to disable this for ALL users, so that either it is a) disabled at all or b) it defaults to "all off" (never check, update nothing) so that a user has to actively enable it.
Is this possible? Is there a config file for this?
Any help would be greatly appreciated.
ps: it was suggested to use "/etc/yum/pluginconf.d/refresh-packagekit.conf", but according to the rpm it only udpates status, not blocking the update.
|

31st May 2012, 03:22 AM
|
|
Registered User
|
|
Join Date: Jun 2010
Posts: 11

|
|
|
Re: Disable automatic updates for ALL users
i don't like it auto update.
i will do it myself when i need
|

5th March 2013, 11:38 PM
|
|
Registered User
|
|
Join Date: Mar 2013
Location: Palatine
Posts: 3

|
|
|
Re: Disable automatic updates for ALL users
I'm running F17. Does anyone know how to disable automatic updates for a given box (for all users)?
I'm running many Fedora desktops in a corporate environment and need control of when updates occur on my network. Kernel updates occasionally break our tools and we want control over when updates happen.
|

6th March 2013, 03:16 AM
|
 |
Registered User
|
|
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,104

|
|
|
Re: Disable automatic updates for ALL users
Uninstall the software updater. Then, you can use yum to update when and if you need it.
__________________
Registered Linux user #470359 and permanently recovered BOFH.
Any advice in this post is worth exactly what you paid for it.
|

6th March 2013, 05:32 PM
|
|
Registered User
|
|
Join Date: Mar 2013
Location: Palatine
Posts: 3

|
|
|
Re: Disable automatic updates for ALL users
Thanks for the replies.
What package are you referring to as the "software updater?". I tried removing PackageKit itself, but then yum wants to remove an additional 20 packages, some of which I want to keep, such as gdm, gnome-shell, etc. I've seen other threads that imply you cannot remove PackageKit when using the later Fedora releases.
Running gpk-prefs, while it might work, I would need to run it for all users on my network (>100 folks), so that's not an attractive solution. Besides, not everyone runs gnome (I have KDE & LXDE users as well).
Right now, I'm considering removing gnome-packagekit (for the gnome users) and apper (for the KDE users) and ?? for LXDE...
However, I've seen packagekitd running on a newly installed box when no one has logged into it yet (other than ssh'ing in (no GUI)). So, I'm guessing that there are other triggers that start packagekitd besides a when a user is logged in via a GUI (gnome, KDE, etc.). Unfortunately, I've not figured out what those other triggers might be...
|

6th March 2013, 06:47 PM
|
 |
Registered User
|
|
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,104

|
|
|
Re: Disable automatic updates for ALL users
It is, I'll grant, hard to remove PackageKit (or preupgrade) if you're running Gnome. I migrated to Xfce just before Gnome 3 came out and, once I'd switched to lightdm I had no trouble whatsoever removing them. YMMV, of course, and probably does.
As far as finding out what starts packagekitd, try this:
systemctl status packagekitd.service
and, if it doesn't report "no file or directory," it's probably started at boot. BTW, you don't need root for that command, although if you want to change a setting you will.
__________________
Registered Linux user #470359 and permanently recovered BOFH.
Any advice in this post is worth exactly what you paid for it.
|

7th March 2013, 01:46 AM
|
|
Registered User
|
|
Join Date: Sep 2005
Location: Redneck Riviera
Posts: 333

|
|
|
Re: Disable automatic updates for ALL users
I believe you can do this with an override file. The idea is to create a file called, for example, /usr/share/glib-2.0/schemas/org.gnome.settings-daemon.plugins.updates.gschema.override containing:
Code:
[org.gnome.settings-daemon.plugins.updates]
active=false
Then, execute
Code:
glib-compile-schemas /usr/share/glib-2.0/schemas
This should prevent any later updates from undoing it.
Fedora 17 installs two override files (for the login screen background & the desktop background). By comparing these to the regular schema .xml files, it should make more sense.
Of course, you can also do it the "easy" way of modifying the file /usr/share/glib-2.0/schemas//org.gnome.settings-daemon.plugins.updates.gschema.xml (which is part of the gnome-settings-daemon package).
Update: This is how the kickstart file /usr/share/spin-kickstarts/fedora-live-desktop.ks does it for the LiveCD.
Last edited by cazo; 9th March 2013 at 09:41 AM.
Reason: update
|

7th March 2013, 02:42 AM
|
|
Registered User
|
|
Join Date: Jan 2011
Posts: 68

|
|
|
Re: Disable automatic updates for ALL users
Quote:
Originally Posted by RayMikkelson
Thanks for the replies.
What package are you referring to as the "software updater?". I tried removing PackageKit itself, but then yum wants to remove an additional 20 packages, some of which I want to keep, such as gdm, gnome-shell, etc. I've seen other threads that imply you cannot remove PackageKit when using the later Fedora releases.
Running gpk-prefs, while it might work, I would need to run it for all users on my network (>100 folks), so that's not an attractive solution. Besides, not everyone runs gnome (I have KDE & LXDE users as well).
Right now, I'm considering removing gnome-packagekit (for the gnome users) and apper (for the KDE users) and ?? for LXDE...
However, I've seen packagekitd running on a newly installed box when no one has logged into it yet (other than ssh'ing in (no GUI)). So, I'm guessing that there are other triggers that start packagekitd besides a when a user is logged in via a GUI (gnome, KDE, etc.). Unfortunately, I've not figured out what those other triggers might be...
|
Since you are talking multiple desktop manager you need to find the one thing that all of them have.
Probably is SELinux and FreeIPA, you can craft a policy to limit user access to it so only root will be able to update those systems and distribute that policy to every client.
https://docs.fedoraproject.org/en-US...x-mapping.html
There is also TOMOYO.
https://en.wikipedia.org/wiki/TOMOYO_Linux (which seems easier, but don't take my word for it)
---------- Post added at 03:42 AM ---------- Previous post was at 03:26 AM ----------
It may also be possible to use the firewall to block access as another layer.
You can even use this cool open source network simulator to play around while trying to figure it out. Ok I will stop now.
http://www.gns3.net/
|

11th March 2013, 09:06 PM
|
|
Registered User
|
|
Join Date: Mar 2013
Location: Palatine
Posts: 3

|
|
|
Re: Disable automatic updates for ALL users
Thanks to everyone for their responses.
What I've decided to do is to:
Quote:
|
yum -y remove gnome-packagekit apper
|
I'm hoping that the yum command that runs at boot is triggered by gdm being started up on the console, and removing gnome-packagekit will take care of that scenario.
Most of the suggestions are gnome-centric, and I have users using other window managers, so they don't take care of the entire problem. For simplicity, I'm not running SELinux, so the PolicyKit/SELinux ideas won't work for my situation. Can't uninstall PackageKit.
I'll let you know if that does the trick...
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 20:35 (Sunday, 19-05-2013)
|
|
 |
 |
 |
 |
|
|