How to completly remove packages installed by cabal?

倖福魔咒の 提交于 2019-12-01 02:58:59

You can delete the files yourself from the packages directory. However, the reason no command to do so is provided is there's in general no guarantee something may not have linked against them elsewhere, and so such deletions may cause breakages. That said, there's also a tool that goes and does the deletion for you if you really want it.

http://hackage.haskell.org/package/cabal-uninstall

And there's a tool with a bit more functionality that also lets you figure out what packages have no reverse deps, so at least no other packages break:

https://github.com/iquiw/cabal-delete

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!