Sample Header Ad - 728x90

Is there a default or recommended directory to store source files ('configure', 'Makefile', etc) of *user* installs?

2 votes
1 answer
158 views
Suppose I have downloaded the source of some software I want to install *just for myself*, not system-wide; say Emacs or whatever. Typically the source is downloaded zipped, then it's unzipped in some directory. This directory contains files like "Makefile", "LICENSE", "configure", and so on. **Question: where should such a source directory be stored (for future check or use) within one's $HOME directory?** I checked the [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/latest/) , but I don't manage to recognize any guidelines there – also because I'm a noob and I don't know if such files are considered "data files" or "state files" or other technical denomiations. A lot of (old) questions ask about where to install the local *executables*, for instance [this question](https://askubuntu.com/q/1148/1519798) or [this question](https://unix.stackexchange.com/q/127076/515980) or [this question](https://unix.stackexchange.com/q/316765/515980) (my system Kubuntu 24.04 confirms that ~/.local/bin is a good place, it's added to $PATH by default). Only [this question](https://unix.stackexchange.com/q/362642/515980) asks about the source files, but it seems to refer to system-wide ones, not local-user ones. It seems strange to me to have to save the source in system-wide /usr/src or the like.
Asked by pglpm (162 rep)
Aug 6, 2025, 08:52 AM
Last activity: Aug 6, 2025, 09:04 AM