48.1 The Package Menu Buffer
The command M-x list-packages
brings up the package menu. This is a buffer listing all the packages that Emacs knows about, one on each line, with the following information:
- The package name (e.g., β
auctex
β). - The packageβs version number (e.g., β
11.86
β). - The packageβs statusβnormally one of β
available
β (can be downloaded from the package archive), βinstalled
β, or βbuilt-in
β (included in Emacs by default). See Package Statuses. - Which package archive this package is from, if you have more than one package archive enabled.
- A short description of the package.
The list-packages
command accesses the network, to retrieve the list of available packages from package archive servers. If the network is unavailable, it falls back on the most recently retrieved list.
The following commands are available in the package menu:
h
β
Print a short message summarizing how to use the package menu (package-menu-quick-help
).
?
RET
β
Display a help buffer for the package on the current line (package-menu-describe-package
), similar to the help window displayed by the C-h P
command (see Packages).
i
β
Mark the package on the current line for installation (package-menu-mark-install
). If the package status is βavailable
β, this adds an βI
β character to the start of the line; typing x
(see below) will download and install the package.
d
β
Mark the package on the current line for deletion (package-menu-mark-delete
). If the package status is βinstalled
β, this adds a βD
β character to the start of the line; typing x
(see below) will delete the package. See Package Files, for information about what package deletion entails.
~
β
Mark all obsolete packages for deletion (package-menu-mark-obsolete-for-deletion
). This marks for deletion all the packages whose status is βobsolete
β.
u
β
DEL
β
Remove any installation or deletion mark previously added to the current line by an i
or d
command (package-menu-mark-unmark
).
U
β
Mark all package with a newer available version for upgrading (package-menu-mark-upgrades
). This places an installation mark on the new available versions, and a deletion mark on the old installed versions (marked with status βobsolete
β).
x
β
Download and install all packages marked with i
, and their dependencies; also, delete all packages marked with d
(package-menu-execute
). This also removes the marks.
g
β
r
β
Refresh the package list (revert-buffer
). This fetches the list of available packages from the package archive again, and redisplays the package list.
/ k
β
Filter the package list by keyword (package-menu-filter-by-keyword
). This prompts for a keyword (e.g., βgames
β), then shows only the packages that relate to that keyword.
/ n
β
Filter the package list by name (package-menu-filter-by-name
). This prompts for a string, then shows only the packages whose names match a regexp with that value.
/ /
β
Clear filter currently applied to the package list (package-menu-clear-filter
).
H
β
Hide packages whose names match a regexp (package-menu-hide-package
). This prompts for a regexp, and then hides the packages with matching names. The default value of the regexp will hide only the package whose name is at point, so just pressing RET
to the prompt will hide the current package.
(
β
Toggle visibility of old versions of packages and also of versions from lower-priority archives (package-menu-toggle-hiding
).
For example, you can install a package by typing i
on the line listing that package, followed by x
.