Uninstalling packages?

Peder Jakobsen pjakobsen at gmail.com
Sat Aug 1 14:09:43 UTC 2015


Wonderful.  Thanks Adam for the quick reply, much appreciated.  :)

> On Aug 1, 2015, at 9:47 AM, Adam Bergmark <adam at bergmark.nl> wrote:
> 
> 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 unregister`.
> 
> There are also tools on hackage that can clean up files when unregistering, iirc cab[1] can.
> 
> HTH,
> Adam
> 
> [1] http://hackage.haskell.org/package/cab <http://hackage.haskell.org/package/cab>
> 
> 
> On Sat, Aug 1, 2015 at 2:52 PM, Peder Jakobsen <pjakobsen at gmail.com <mailto: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 <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 <mailto:cabal-devel at haskell.org>
> http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel <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/b7a91c61/attachment-0001.html>


More information about the cabal-devel mailing list