I've repurposed some code to show me a list of packages that I have installed which have upgrades available.
Currently I'm running package-refresh-contents
when I start-up Emacs and then display the list of upgrade-able packages. This however locks my Emacs up until the refresh completes.
Is there a way to run package-refresh-contents
as a background process (inside Emacs, but possibly also as some kind of cronjob which would only reflect in Emacs sessions opened after said job has finished running) which doesn't interfere with my ability to carry on working?
C-h f
suggestspackage-refresh-contents
can run in the background without blocking Emacs UI.