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

怎甘沉沦 提交于 2019-12-02 16:59:21
Ted Feng

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

Also here is very good introduction: Package management in emacs - The good, the bad and the ugly

I've noticed that all the installed packages end up at the bottom of the list. If a new version of the package you want to uninstall is available, it will occur twice in the *Packages* buffer, once for the new version, listed as available, and a second time, listed as installed, for the old version. Only the version listed as installed can be marked for deletion using d and subsequently removed using x, answering yes to the question in the mini-buffer. That removes the actual files in the elpa directory for me.

It happened on me when the update crack. It ends up with both new and old packages in elpa directory. You can not install or delete in emacs package management. You can just delete the package under elpa directory directly. Then the emacs package works again.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!