[Haskell-cafe] [OT] GHC uninstall on Linux
Philip Armstrong
phil at kantaka.co.uk
Wed Nov 7 05:01:21 EST 2007
On Wed, Nov 07, 2007 at 10:41:53AM +0100, Dusan Kolar wrote:
> I use tar.bz2 binary distribution of GHC compiler as my distro does not
> use any supported packaging system. Everything is fine, but... I want to
> install the new version of the GHC compiler. Is there any (easy) way, how
> to get information about what was copied and where during installation?
> (./configure; make install) There seems to be no uninstall target in the
> Makefile. :-( And I want to uninstall the previous version of the compiler.
> Is it safe to delete files/folders just from /usr/local/lib/ghc-6.6.1 and
> /usr/local/bin/gh* ?
Probably. At least you installed it in /usr/local, not /usr...
For future reference, this is what GNU stow is for: you do
$ ./configure --prefix=/usr/local/stow/packagename
when you build the binaries and then use the stow command to put
appropriate symlinks in to /usr/local/bin, /usr/local/lib etc etc for
the version you want to use. This way you can have several versions
installed in parallel in /usr/local/stow/ghc-6.6.1
/usr/local/stow/ghc-6.8 etc etc, but have one default version
symlinked into your $PATH.
Very useful...
Phil
--
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt
More information about the Haskell-Cafe
mailing list