Reputation: 3124
I would like to know if there is some tool,script or any other way to uninstall packages and their dependencies that were installed using the Cabal tool?
Upvotes: 2
Views: 257
Reputation: 29110
There's no built-in way of doing this and I've never heard of a tool or script that can do it.
The best approach is to use a sandbox. For example in a fresh directory:
cabal sandbox init
cabal install <whatever>
...
Then just blow away the directory when you're done with it.
You can also explicitly specify the sandbox directory with --sandbox=...
- otherwise it goes in .cabal-sandbox
inside the current directory.
Upvotes: 4