Install instruction can be found here: http://nginx.org/en/download.html
After you add nginx repo to your Ubuntu sources.list, then run command:
sudo apt-get update; sudo apt-get upgrade
Nginx will be upgraded to the latest version. If you want to add module then you have to build it from source, there is no way to install nginx with modules from nginx official repo.