# Update nginx with Ubuntu PPA

**URL:** <https://www.ruby-forum.com/t/update-nginx-with-ubuntu-ppa/235885>\
**Category:** NGINX\
**Created:** [July 22, 2013, 7:14pm UTC](https://www.ruby-forum.com/t/update-nginx-with-ubuntu-ppa/235885 "2013-07-22T19:14:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [July 22, 2013, 7:14pm UTC](https://www.ruby-forum.com/t/update-nginx-with-ubuntu-ppa/235885/1 "2013-07-22T19:14:18Z")

</div>

I am upgrading nginx to latest 1.4.1 using PPA. repository.

1. After install, do I need to restart it manually, or it is restarted  
automatically?
2. Is reload enough for the nginx upgrade? Or do I need to restart or  
stop/start?

Thanks.

---

<div class="post-metadata">

**Author:** ![howard\_chen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bbce88/32.png) [@howard\_chen](https://www.ruby-forum.com/u/howard_chen)\
**Post date:** [July 23, 2013, 12:56am UTC](https://www.ruby-forum.com/t/update-nginx-with-ubuntu-ppa/235885/2 "2013-07-23T00:56:09Z")

</div>

On Mon, Jul 22, 2013 at 10:13 AM, howard chen [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I am upgrading nginx to latest 1.4.1 using PPA. repository.
> 
> 1. After install, do I need to restart it manually, or it is restarted  
> automatically?
> 2. Is reload enough for the nginx upgrade? Or do I need to restart or  
> stop/start?

If you are using the apt-get upgrade or aptitude upgrade commands, the  
service will be restarted for you.

You may want to run sudo nginx -t to check for errors.

---

<div class="post-metadata">

**Author:** ![howard\_chen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bbce88/32.png) [@howard\_chen](https://www.ruby-forum.com/u/howard_chen)\
**Post date:** [July 23, 2013, 10:25am UTC](https://www.ruby-forum.com/t/update-nginx-with-ubuntu-ppa/235885/3 "2013-07-23T10:25:06Z")

</div>

## openletter Wrote:

> If you are using the apt-get upgrade or aptitude upgrade commands, the  
> service will be restarted for you.

This might be a little off topic, but how can one upgrade nginx on  
ubuntu  
with the official ppa via apt without having a restart of nginx but an  
upgrade instead? (/etc/init.d/nginx upgrade)

Posted at Nginx Forum:

> **[Re: Update nginx with Ubuntu PPA](https://forum.nginx.org/read.php?2,241123,241132#msg-241132)**
>
> I am upgrading nginx to latest 1.4.1 using PPA. repository. 1. After install, do I need to restart it manually, or it is restarted automatically? 2. Is reload enough for the nginx upgrade? Or do I need to restart or stop/start? Thanks. \_\_\_\_\_\_\_\_\_\_\_\_\_\_

---

<div class="post-metadata">

**Author:** ![howard\_chen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bbce88/32.png) [@howard\_chen](https://www.ruby-forum.com/u/howard_chen)\
**Post date:** [July 25, 2013, 7:29pm UTC](https://www.ruby-forum.com/t/update-nginx-with-ubuntu-ppa/235885/4 "2013-07-25T19:29:38Z")

</div>

On Tuesday 23 July 2013 12:24:38 JackB wrote:

> ## openletter Wrote:
> 
> > If you are using the apt-get upgrade or aptitude upgrade commands, the  
> > service will be restarted for you.
> 
> This might be a little off topic, but how can one upgrade nginx on ubuntu  
> with the official ppa via apt without having a restart of nginx but an  
> upgrade instead? (/etc/init.d/nginx upgrade)

Please note, there is no “official ppa”.

Official nginx repositories for Ubuntu (and other Linux ditros) are  
here:  
[http://nginx.org/en/linux\_packages.html](http://nginx.org/en/linux_packages.html)

wbr, Valentin V. Bartenev

–  
[http://nginx.org/en/donation.html](http://nginx.org/en/donation.html)

---

<div class="post-metadata">

**Author:** ![howard\_chen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bbce88/32.png) [@howard\_chen](https://www.ruby-forum.com/u/howard_chen)\
**Post date:** [July 26, 2013, 1:23am UTC](https://www.ruby-forum.com/t/update-nginx-with-ubuntu-ppa/235885/5 "2013-07-26T01:23:38Z")

</div>

On Thu, Jul 25, 2013 at 10:29 AM, Valentin V. Bartenev [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > 
> 
> Please note, there is no “official ppa”.
> 
> Official nginx repositories for Ubuntu (and other Linux ditros) are here:  
> [nginx: Linux packages](http://nginx.org/en/linux_packages.html)
> 
> wbr, Valentin V. Bartenev

Yes, there is no official PPA.

The PPA I and many others use is unofficial, but seems to be well  
maintained (thanks for that, whoever you are).

Someone wanting to use the same unofficial repository may execute the  
following:

add-apt-repository ppa:nginx/stable  
apt-get update  
apt-get install nginx

If you want to use the devel version, then replace ppa:nginx/stable  
with ppa:nginx/development

If you don’t have add-apt-repository, then apt-get install  
python-software-properties.

---

<div class="post-metadata">

**Author:** ![howard\_chen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bbce88/32.png) [@howard\_chen](https://www.ruby-forum.com/u/howard_chen)\
**Post date:** [July 23, 2013, 10:34am UTC](https://www.ruby-forum.com/t/update-nginx-with-ubuntu-ppa/235885/6 "2013-07-23T10:34:27Z")

</div>

You can download and extract the package and replace all files.  
But you will have to load the new binary at one time.

I might be wrong - but I suppose you can do that gracefully

Regards, Axl

Am Dienstag, 23. Juli 2013, 04:24:38 schrieb JackB:

> This might be a little off topic, but how can one upgrade nginx on  
> ubuntu

---

<div class="post-metadata">

**Author:** ![howard\_chen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bbce88/32.png) [@howard\_chen](https://www.ruby-forum.com/u/howard_chen)\
**Post date:** [July 26, 2013, 6:35am UTC](https://www.ruby-forum.com/t/update-nginx-with-ubuntu-ppa/235885/7 "2013-07-26T06:35:05Z")

</div>

Valentin V. Bartenev Wrote:

> > This might be a little off topic, but how can one upgrade nginx on  
> > ubuntu  
> > with the official ppa via apt without having a restart of nginx but an  
> > upgrade instead? (/etc/init.d/nginx upgrade)

> Please note, there is no “official ppa”.
> 
> Official nginx repositories for Ubuntu (and other Linux ditros) are  
> here:  
> [nginx: Linux packages](http://nginx.org/en/linux_packages.html)

Oh, I meant your repositories but named it ppa. Sorry for that.

Will there be a way of having an upgrade instead of an automatic restart  
in  
case of binary/package updates in the future?

Posted at Nginx Forum:

> **[Re: Update nginx with Ubuntu PPA](https://forum.nginx.org/read.php?2,241123,241279#msg-241279)**
>
> I am upgrading nginx to latest 1.4.1 using PPA. repository. 1. After install, do I need to restart it manually, or it is restarted automatically? 2. Is reload enough for the nginx upgrade? Or do I need to restart or stop/start? Thanks. \_\_\_\_\_\_\_\_\_\_\_\_\_\_

---

<div class="post-metadata">

**Author:** ![howard\_chen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bbce88/32.png) [@howard\_chen](https://www.ruby-forum.com/u/howard_chen)\
**Post date:** [July 26, 2013, 11:30am UTC](https://www.ruby-forum.com/t/update-nginx-with-ubuntu-ppa/235885/8 "2013-07-26T11:30:57Z")

</div>

On 26 Jul2013, at 08:34 , JackB [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > [nginx: Linux packages](http://nginx.org/en/linux_packages.html)
> 
> Oh, I meant your repositories but named it ppa. Sorry for that.
> 
> Will there be a way of having an upgrade instead of an automatic restart in  
> case of binary/package updates in the future?

Our package already calls ‘/etc/init.d/nginx upgrade’ on update
