如何使用堆棧工具卸載全局安裝的Haskell軟件包?如何卸載安裝了堆棧的Haskell軟件包?
stack --help
顯示不推薦使用卸載命令。
uninstall DEPRECATED: This command performs no actions, and is
present for documentation only
如何使用堆棧工具卸載全局安裝的Haskell軟件包?如何卸載安裝了堆棧的Haskell軟件包?
stack --help
顯示不推薦使用卸載命令。
uninstall DEPRECATED: This command performs no actions, and is
present for documentation only
由於stack --help
表示,卸載不會做任何事情。您可以閱讀關於此功能請求的此on the stack github,但由於各種原因,它最終被關閉而無需將行爲添加到堆棧。因此,官方沒有辦法使用堆棧來卸載軟件包。
要刪除已安裝堆棧的軟件包,您需要手動執行此操作。這需要使用ghc-pkg取消註冊,然後在系統上找到軟件包的位置,然後通過其他工具或簡單地將其刪除。rm
。例如,
stack install <package name>
# Now remove the package
ghc-pkg unregister <pkg-id>
cd /path/to/stack/packages # This could be something like ~/.local/bin, but is configuration dependent
rm <package name>
可能的相關quesiton:http://stackoverflow.com/questions/37236892/force-stack-to-rebuild-an-installed-package/37237777#37237777 – ErikR