title: Ideal way to use wget to download and install using temp directory?
body: <p>I am trying to work out the proper process of installing with Wget, in this example I'll use Nginx.</p>
  
  <pre><code># Download nginx to /tmp/ directory
  wget http://nginx.org/download/nginx-1.3.6.tar.gz -r -P /tmp
  
  # Extract nginx into /tmp/nginx directory
  tar xzf nginx-1.3.6.tar.gz -C /tmp/nginx
  
  # Configure it to be installed in opt
  ./configure --prefix=/opt/nginx
  
  # Make it
  make
  
  # Make install
  make install
  
  # Clean up temp folder
  rm -r /tmp/*
  </code></pre>
  
  <p>Is this the idealised process? Is there anything I can improve on?</p>