Guspaz wrote:
Well, using your distribution's package manager is the proper way, but it seems you installed it from source (bad idea)...
Only if your distribution is up to date. On my Ubuntu 8.04 servers, compiling your own is really easiest overall. The official repositories aren't nearly up to date (even backports is 0.6.something), and while I tracked a private ppa at one point it disappeared without much fanfare.
Of course, some packages are easier than others, but nginx is pretty simple. Figure out the build config options you want, save it in a shell script and re-use over time. You really only need to transfer the single binary over to the resulting server.
I did borrow/update an init.d script though to tie it into normal startup.
To the OP, you should be able to run nginx manually with the -V option to see what options your current version was built with, and then use them (as is or as a starting point) for your own compilation. The nginx build process has a configure step, though it's not autoconf based, and in my experience it's quite easy to build.
This assumes you didn't do your own source build (which given that you have it in /opt may or may not be true). If you built it yourself and just want the update process, most of the time you just really need the nginx binary to be updated - configurations are generally compatible unless you want to use new features. If you haven't touched them you can update the various *_param and config files, or just diff yours with the source tree to see if anything changed.
Of course, you might also ask yourself if it's really necessary. Even though there is a later version available, unless you need a specific feature or it has a specific security fix, there's nothing forcing you to upgrade.
-- David