GHC / Haskell平台安装的地方 [英] Everywhere that GHC/Haskell Platform installs

查看:102
本文介绍了GHC / Haskell平台安装的地方的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我想彻底重新安装GHC / HP。我想(和任何事情一样迷信)删除之前安装的任何内容和所有内容。我真的需要删除(以及在哪里)?

编辑:我在OSX上,但是我更加好奇这些信息是否可用,所有系统。

Edit2:到目前为止,我们有:

OSX:

/ Library / Frameworks / GHC.framework /

〜/ .cabal /

/ usr / bin / - 符号链接



我将补充(基于此处定义的前缀: http://www.vex。 net /〜trebla / haskell / sicp.xhtml#storage ):

前缀/ lib /

前缀/共享/

前缀/ bin /

前缀/ share / doc /

/ usr(/ local)/ lib / [ghc-version]

/ usr(/ local)/ share / doc / ghc / html / libraries / - 文档

/ usr(/ local)/ share / doc / ghc /

/ usr(/ local)/ bin

/ var / lib / [ghc-version]

/ etc / [ghc-version]

〜/ .ghc /



编辑3:

OS X:

〜/ Library / Haskell

Linux: >
??

Windows:

??

解决方案

最近不得不在OS X上删除Haskell Platform。大多数通过Uninstaller进行清理:

  sudo /Library/Frameworks/GHC.framework/Versions/Current/Tools/Uninstaller 

这些必须手动清理:

  rm -r〜/ .cabal 
rm -r〜/ .ghc
rm -r〜/ Library / Haskell

或者,如

  / Library / Haskell / doc / start.html 

现在有一个带有选项的自定义卸载命令,


$ b $

  / Library / Haskell / bin / uninstall-hs 

通常,可以通过将工作目录中的活动包含在

  echo> timestamp 
[activity]
sudo find -x / -newer timestamp -print> snapshot.txt


Assume I want to completely reinstall GHC/HP. I want to (as much for superstition as anything) delete anything and everything from previous installs. What do I actually need to delete (and where)?

Edit: I'm on OSX, but I'm more curious if this information is available in general, for all systems.

Edit2: So far we have:

OSX:
/Library/Frameworks/GHC.framework/
~/.cabal/
/usr/bin/ -- symlinks

I'll add to that (based on "prefix" defined here: http://www.vex.net/~trebla/haskell/sicp.xhtml#storage):
prefix/lib/
prefix/share/
prefix/bin/
prefix/share/doc/
/usr (/local) /lib/[ghc-version]
/usr (/local) /share/doc/ghc/html/libraries/ -- documentation
/usr (/local) /share/doc/ghc/
/usr (/local) /bin
/var/lib/[ghc-version]
/etc/[ghc-version]
~/.ghc/

Edit 3:
OS X:
~/Library/Haskell

Linux:
??

Windows:
??

解决方案

Had to remove Haskell Platform on OS X recently. Most are cleaned up via Uninstaller:

sudo /Library/Frameworks/GHC.framework/Versions/Current/Tools/Uninstaller

These have to be cleaned up manually:

rm -r ~/.cabal
rm -r ~/.ghc
rm -r ~/Library/Haskell

Alternatively, as documented in

/Library/Haskell/doc/start.html

there is now a custom uninstall command with options,

/Library/Haskell/bin/uninstall-hs

In general, one can document the files created by any activity (installer, ...) by bracketing the activity in a work directory with

echo >timestamp
[activity]
sudo find -x / -newer timestamp -print >snapshot.txt

这篇关于GHC / Haskell平台安装的地方的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆