
Hello all, 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* ? Thanks for any hint Dusan P.S. Tried google with no usable results. D.

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

On Wed, Nov 07, 2007 at 10:41:53AM +0100, Dusan Kolar wrote:
Hello all,
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.
You don't need to uninstall GHC, ever, except for disk space reasons. You can easily have thirteen versions of GHC installed and happily coexisting: stefan@stefans:~$ ghci-6. ghci-6.4.2 ghci-6.7 ghci-6.7.20070223 ghci-6.7.20070402 ghci-6.7.20070502 ghci-6.7.20070601 ghci-6.7.20070712 ghci-6.7.20070829 ghci-6.6.1 ghci-6.7.20070213 ghci-6.7.20070323 ghci-6.7.20070413 ghci-6.7.20070518 ghci-6.7.20070612 ghci-6.7.20070826 Stefan

Hello all, Thank you for your replies and tips. The idea of having several versions of GHC in parallel is nice, but I don't long for it even if space is not a problem. To post some resolution: the stuff is (if installed using default settings) in the directories /usr/local/bin, /usr/local/lib, and /usr/local/share/doc. It is easy to find and remove /usr/local/lib/ghc* and /usr/local/share/doc/ghc* directories. Nevertheless, in the /usr/local/bin directory, you should search not only for *ghc* but even for other stuff that may be part of installation if other components are installed as well, they are: hasktags, hp2ps, hpc, hsc2hs, runhaskell. From the proposed tools, I gave a try to GNU stow tool. I can recommend it as it is easy to use and it can detect conflicts (the way I have discovered other files than *ghc* in the /usr/local/bin). Thx and regards Dusan
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.
You don't need to uninstall GHC, ever, except for disk space reasons. You can easily have thirteen versions of GHC installed and happily coexisting:
stefan@stefans:~$ ghci-6. ghci-6.4.2 ghci-6.7 ghci-6.7.20070223 ghci-6.7.20070402 ghci-6.7.20070502 ghci-6.7.20070601 ghci-6.7.20070712 ghci-6.7.20070829 ghci-6.6.1 ghci-6.7.20070213 ghci-6.7.20070323 ghci-6.7.20070413 ghci-6.7.20070518 ghci-6.7.20070612 ghci-6.7.20070826
Stefan

On Wed, Nov 07, 2007 at 10:41:53 +0100, Dusan Kolar wrote:
Hello all,
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* ?
Thanks for any hint
Depending on what distro you are using you might find checkinstall[1] insteresting. If it doesn't support your distro of choice, maybe you can add support for it :-) /M [1]: http://asic-linux.com.mx/~izto/checkinstall/ -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus.therning@gmail.com http://therning.org/magnus
participants (4)
-
Dusan Kolar
-
Magnus Therning
-
Philip Armstrong
-
Stefan O'Rear