2

When installing software in $HOME, how do the linux filesystem hierarchy directories map to subdirectories of $HOME?

I am asking this question so that I can write a build system that picks reasonable default paths for a user install. The build system infrastructure is Haskell-specific (Cabal) but the installed files include C++ headers and libraries, for which Cabal doesn't have a default install path.

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
Heatsink
  • 123
  • 3

2 Answers2

3

$PREFIX is ~/.local/. Everything else maps under there.

Ignacio Vazquez-Abrams
  • 44,857
  • 7
  • 93
  • 100
2

If you are building a File System Hierarchy (FHS) for package installation in a $HOME directory, it should ideally mirror the FHS of /usr/local. See this discussion for more information and this documentation on FHS Standards.

George M
  • 13,589
  • 4
  • 43
  • 53