GHC / Haskell平台安装的地方 [英] Everywhere that GHC/Haskell Platform installs
问题描述
编辑:我在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屋!