Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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.

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

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

share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.