Tuesday, February 09, 2010

Context Sensitivity

If you were going to install a new version of, say, apache, and saw

lrwxrwxrwx   1 root root   13 Jan  9  2009 apache -> 
                                           apache-1.3.29/
drwxr-sr-x   9 root root  512 May 10  2001 apache-1.3.26/
drwxr-sr-x   9 root root  512 Jan 27  2004 apache-1.3.29/

in /usr/local, how would you install your new version of apache? I would hope that you wouldn't just install it into an "apache" directory like this:

drwxr-sr-x  10 root root 512 Feb  9 09:38 apache/
drwxr-sr-x   9 root root 512 May 10  2001 apache-1.3.26/
drwxr-sr-x   9 root root 512 Jan 27  2004 apache-1.3.29/

I swear, this needs to be an interview question with a hard FAIL mode (as in "Sorry, we're done. Goodbye."). If you can't figure out to preserve the existing pattern, you shouldn't be a sysadmin.

2 comments:

W said...

./configure --prefix=/usr/local/apache-newish

rantingnerd said...

Exactly!