I'm building several (> 10) packages as a non-root user from source, and want to install them (for the sake of this question, choose the --prefix=
value). Two obvious options are:
- Use my home directory, which means I'll have
etc/
,usr/
,var/
and similar subdirs, and within each of them will be the files for different packages. But most of the packages don't interact, so there's isn't much sense in having their files in the same subdirs, and it will make uninstalling kind of a pain I think - Use a separate dir for each package, e.g.
--prefix=$HOME/myfooapp
,--prefix=$HOME/mybarlib
and so on. This will keep everything separate, but now my home dir will fill up with multiple subdirs I don't want to see. Also, some of the packages do interact, so I don't mind them being together in the same place (no need to make the PATH super-long).
Is there some other alternative I'm missing? I mean, I could do
- Like Option 2. but in a subdirectory of my home directory, e.g.
--prefix=$HOME/opt/myfooapp
,--prefix=$HOME/opt/mybarlib
is this the best I can do?
make uninstall
option, which simplifies the problem in #1.