Software packages with a configure script can specify this manually by adding –prefix:
./configure --prefix=/usr/local
My question is, how do I find out what the system’s default prefix is? Is there some command, even on just Redhat that will get you the default install prefix if none is specified?
It always is
/usr/local/per autotools defaults. Try runningconfigurewithout a--prefixargument; you should get the same result.And it is a good default as you never want local software to interfere with system software in
/usr— which the package managers install.You could look at the Filesystem Hierarchy Standard documents for a more extended discussion of what goes where.