我怎样才能卸载一个Cabal软件包的版本? [英] How can I uninstall a version of a Cabal package?

查看:116
本文介绍了我怎样才能卸载一个Cabal软件包的版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Happstack Lite打破了我的想法,因为它的版本为0.5,它希望版本为0.4。 Cabal说 版本都安装了0.4.3.4和0.5.0.0版本。我想删除0.5.0.0并只使用旧版本。但cabal没有卸载命令,当我尝试 ghc-pkg unregister --force blaze-html ghc-pkg 表示我的命令已被忽略。



我该怎么办?

更新不要相信它。虽然 ghc-pkg 声称忽略该命令,但命令不被忽略。在Don Stewart接受的答案中,您可以删除您希望消除的版本。 您可以 ghc-pkg unregister 特定版本,如下所示:
$ b

  $ ghc-pkg unregister --force regex-compat-0.95.1 

这应该足够了。


Happstack Lite is breaking on me because it's getting blaze-html version 0.5 and it wants version 0.4. Cabal says that both versions 0.4.3.4 and 0.5.0.0 are installed. I want to remove the 0.5.0.0 and use just the older version. But cabal does not have an "uninstall" command, and when I try ghc-pkg unregister --force blaze-html, ghc-pkg says my command has been ignored.

What do I do?

UPDATE: Don't believe it. Although ghc-pkg claims to ignore the command, the command isn't ignored. And with Don Stewart's accepted answer you can remove exactly the version you wish to eliminate.

解决方案

You can ghc-pkg unregister a specific version, like so:

$ ghc-pkg unregister --force regex-compat-0.95.1

That should be sufficient.

这篇关于我怎样才能卸载一个Cabal软件包的版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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