如何删除已安装的 elpa 包 [英] How to remove installed elpa package

查看:14
本文介绍了如何删除已安装的 elpa 包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这很奇怪,list-packages 缓冲区显示可用"作为一些实际安装的包的状态.该列不应该为他们显示已安装"吗?当我单击一个时,会打开一个新缓冲区,通知我该软件包已安装,但不提供卸载选项.相比之下,我没有安装的其他软件包显示为可用",旁边有一个安装"选项.

This is strange, the list-packages buffer shows "available" as the status for some packages that are actually installed. Shouldn't that column show "installed" for them? When I click on one, a new buffer opens to inform me that the package is installed, but offers no uninstall option. By comparison, other packages I do not have installed show as "available" with an "install" option next to them.

如何卸载已安装的软件包?我目前正在寻找的一种是平滑滚动.

How do I uninstall an installed package? The one I'm currently looking to axe is smooth-scrolling.

推荐答案

为此我喜欢使用穷人的解决方案:只需删除 ~/.emacs.d/elpa/<中不需要的包的目录/code>(或在您的 package-directory-list 中指定的目录).

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

此解决方案适用于出现问题的场景(可能是错误,可能是手动修改包数据的结果).请使用@lunaryon 回答;在 99.9% 的情况下,这是正确的做法.

this solution is intended for scenarios where something went wrong (maybe a bug, maybe the result of manual tinkering with packages' data). Please use @lunaryon answer; it is the right way of doing this on the 99.9% of the cases.

这篇关于如何删除已安装的 elpa 包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆