Linux – how to get latest nginx using apt – ubuntu

aptlinuxnginxUbuntu

I want to install the latest nginx using apt on ubuntu lucid.

I followed the instructions on the nginx wiki and added the source:

echo "deb  http://ppa.launchpad.net/nginx/stable/ubuntu lucid main" >> /etc/apt/sources.list

the problem is the latest stable version is 0.7.67 but when i use apt-cache show, it shows as 0.7.65

how do i install the latest version using apt?
i had the same problem with php,mysql etc so i've been installing everything from source, but i'm wondering whether i can get all the latest versions with apt.

Best Answer

I think that you must be especific with the commands:

sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx=0.7.67-4ppa1

Just remember to put the version of nginx from the launchpad package.