Function: package-menu-mark-upgrades

package-menu-mark-upgrades is an interactive and byte-compiled function defined in package.el.gz.

Signature

(package-menu-mark-upgrades)

Documentation

Mark all upgradable packages in the Package Menu.

For each installed package for which a newer version is available, place an (I)nstall flag on the available version and a (D)elete flag on the installed version. A subsequent M-x package-menu-execute (package-menu-execute) command will upgrade the marked packages.

If there's an async refresh operation in progress, the flags will be placed as part of package-menu--post-refresh instead of immediately.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/package.el.gz
(defun package-menu-mark-upgrades ()
  "Mark all upgradable packages in the Package Menu.
For each installed package for which a newer version is available,
place an (I)nstall flag on the available version and a (D)elete flag
on the installed version.  A subsequent \\[package-menu-execute] command will upgrade
the marked packages.

If there's an async refresh operation in progress, the flags will
be placed as part of `package-menu--post-refresh' instead of
immediately."
  (interactive nil package-menu-mode)
  (package--ensure-package-menu-mode)
  (if (not package--downloads-in-progress)
      (package-menu--mark-upgrades-1)
    (setq package-menu--mark-upgrades-pending t)
    (message "Waiting for refresh to finish...")))