How to disable automatic updates on Fedora 25?

8

1

The title is sufficient I think. How can I stop Fedora to automatically download and install system and software updates on restart?

user373230

Posted 2016-11-09T09:12:59.570

Reputation:

Answers

12

dnf is a background service that updates the repository metadata automatically. dnf makecache is scheduled to run after every reboot

To disable dnf-makecache.service:

systemctl disable dnf-makecache.service 

Also disable the dnf-makecache.timer or the service will be restarted:

systemctl disable dnf-makecache.timer

Regards

stefzeer

Posted 2016-11-09T09:12:59.570

Reputation: 189

Thank you, I've accepted the answer. I just wonder if commands are the only option to disable updates on Fedora 25, is it possible through editing configuration files as well? – None – 2016-11-09T11:46:45.920

7Note that you also will need to separately disable packagekit refreshes. This is a known problem and I'm optimistic that we'll get this solved in the next release (but not F25). gsettings set org.gnome.software download-updates false – mattdm – 2016-11-09T15:14:35.193

1the mattdm comment has to be in the answer, seems to be the obligatory piece of the puzzle as everything else was kinda disabled – MolbOrg – 2017-04-10T16:19:14.983

Even after setting download-updates=false in gsettings, it's downloading huge metadata files which is very very annoying. I'm trying to use fedora after long time Ubuntu and this reminded me why I chose ubuntu first. – Anwar – 2017-07-18T04:52:11.573