How to remove an installed elpa package

It is strange that the list-packages buffer shows "available" as the status of some actually installed packages. Should this column show "set" for them? When I click on it, a new buffer opens to inform me that the package is installed, but does not have the uninstall option. For comparison, other packages that I have not installed are displayed as “available” with the “install” option next to them.

How to remove an installed package? The one that I'm looking at the ax now scrolls smoothly.

+44
emacs
Dec 12 '13 at
source share
5 answers

I like to use the solution for the poor: just delete the directory for the unwanted package in ~/.emacs.d/elpa/ (or the directory specified in your package-directory-list ).

+41
Dec 12 '13 at
source share

The package menu displays all known versions of the package.

Thus, you can see that the installed package is also listed as available for the instance if there is a newer version of the same package, or if the same package is available from different archives.

To remove such a package, simply scroll down the list or use Cs PACKAGE-NAME to search for package occurrences. When you find the installed version of the package, press D to mark the package to be uninstalled, then x perform the action and actually remove the package.

+30
Dec 12 '13 at 11:03
source share

I just uninstalled django-snippets packages

 Mx package-list-packages Cs django-snippets 

Mark the package for deletion by typing d . Run by typing x .

Just like removing the corresponding directory from ~/.emacs.d/elpa/ .

Note: for recent versions of emacs, the command is list-packages (instead of packages-list-packages )

+22
Sep 18 '14 at 19:19
source share

For Emacs 25.1 and higher, the command

Mx package-delete

calls an autocomplete request for the names of the packages that you installed.

+20
Dec 21 '16 at 14:24
source share

I found this by accident: turn on the list of packages, find the package (s) you want to remove, and press "D". When you are done, click "X" and it will remove the packages. It works exactly the same as when installing new packages, except that you replace “I” with “D” (I think “D” means “remove”).

+14
Mar 03 '14 at 15:10
source share



All Articles