Uninstalling packages?

Adam Bergmark adam at bergmark.nl
Sat Aug 1 13:47:37 UTC 2015

There is no uninstall command, there was at one point but it didn't do
anything ;-)

Unregistering a package does not delete any files, but it will make cabal
forget about its existence.
If you are working in a sandbox you can simply `cabal sandbox delete; cabal
sandbox init` to start from scratch, you can also deregister packages there
with `cabal sandbox hc-pkg unregister`, outside a sandbox it's `ghc-pkg

There are also tools on hackage that can clean up files when unregistering,
iirc cab[1] can.


[1] http://hackage.haskell.org/package/cab

On Sat, Aug 1, 2015 at 2:52 PM, Peder Jakobsen <pjakobsen at gmail.com> wrote:

> Hi, just browsed through the user guide on managing packages at at
> https://www.haskell.org/cabal/users-guide/installing-packages.html
> *Managing* seems to imply that you should also be able to uninstall
> packages with a simple command.  But there seem to be no instructions for
> how to do this for an installed packaged.  What am I missing?  Is it
> called “deregistering”?
> Thanks again,
> P.
> _______________________________________________
> cabal-devel mailing list
> cabal-devel at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/cabal-devel/attachments/20150801/5ac99a41/attachment.html>

More information about the cabal-devel mailing list