Keep Emacs 27.1 from refreshing packages on every restart

This have been annoying me for months. One of the larger changes in Emacs 27.1 was the introduction of early-init. Not going into it here.

But one side effect of that, is that, with the default setup it would refresh package lists, even with code that prior to 27.1 stopped that from hapening.

This is how to fix this, first set this in early-init.el

(setq package-enable-at-startup nil)

Then, you need to have this in your init.el or similar:


I have it in my org config file, right after I set the package lists.