How to remove an installed package in Emacs (ver 24+)?

I want to remove several packages that I installed. When I call package-list-packages , I notice that there is a command β€œ d ” (mark for deletion) and β€œ x ” (execute). However, it seems that this simply removes the package name / description from the list, not the actual files in ~/.emacs.d/elpa . What am I doing wrong or not? Of course, there must be some way to remove installed packages.

+44
emacs24
May 9 '13 at 19:27
source share
3 answers

The package-menu-mark-delete command ('d' key) followed by package-menu-execute ('x' key) worked for me.

Also here is a very good introduction: Package Management in emacs - Good, Bad and Ugly

+43
May 27 '13 at 11:37
source share

I noticed that all installed packages end at the bottom of the list. If a new version of the package that you want to remove is available, it will be repeated twice in the *Packages* buffer, once for the new version, indicated as available, and the second time, indicated as installed, for the old version. Only the version indicated as installed can be marked for removal with d and subsequently deleted with x , answering yes to the question in the mini-buffer. This will delete the actual files in the elpa directory for me.

+20
Nov 21 '13 at 17:19
source share

This happened during a crack update. It ends with both new and old packages in the elpa directory. You cannot install or remove emacs in package management. You can simply remove the package under the elpa directory directly. Then the emacs package works again.

+1
Apr 04 '14 at 22:40
source share



All Articles