我怎样才能卸载一个Cabal软件包的版本? [英] How can I uninstall a version of a Cabal package?
问题描述
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屋!