Variable: package-archive-priorities
package-archive-priorities is a customizable variable defined in
package.el.gz.
Value
nil
Documentation
An alist of priorities for packages.
Each element has the form (ARCHIVE-ID . PRIORITY).
When installing packages, the package with the highest version number from the archive with the highest priority is selected. When higher versions are available from archives with lower priorities, the user has to select those manually.
Archives not in this list have the priority 0, as have packages that are already installed. If you use negative priorities for the archives, they will not be upgraded automatically.
See also package-menu-hide-low-priority.
This variable was added, or its default value changed, in Emacs 25.1.
Probably introduced at or before Emacs version 25.1.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/package.el.gz
(defcustom package-archive-priorities nil
"An alist of priorities for packages.
Each element has the form (ARCHIVE-ID . PRIORITY).
When installing packages, the package with the highest version
number from the archive with the highest priority is
selected. When higher versions are available from archives with
lower priorities, the user has to select those manually.
Archives not in this list have the priority 0, as have packages
that are already installed. If you use negative priorities for
the archives, they will not be upgraded automatically.
See also `package-menu-hide-low-priority'."
:type '(alist :key-type (string :tag "Archive name")
:value-type (integer :tag "Priority (default is 0)"))
:risky t
:version "25.1")