如何删除已安装的 elpa 包

编程入门 行业动态 更新时间:2024-10-27 16:30:53
本文介绍了如何删除已安装的 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屋!

更多推荐

[db:关键词]

本文发布于:2023-03-27 11:10:01,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:elpa

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!