# Nginx linux packages

**URL:** <https://www.ruby-forum.com/t/nginx-linux-packages/211039>\
**Category:** NGINX\
**Created:** [August 24, 2011, 11:23am UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039 "2011-08-24T11:23:40Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [August 24, 2011, 11:23am UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/1 "2011-08-24T11:23:40Z")

</div>

Hi,

We have created apt and yum repositories for nginx users on Linux.  
They are available on [Index of /packages/](http://nginx.org/packages/)  
for CentOS/RHEL 5 and 6, Ubuntu 10.04 and Debian 6. There are plans to  
update packages as soon  
as new stable nginx versions are released.  
To add nginx yum repository fnginx.repo file has to be created in  
/etc/yum.cond.d/ directory.  
In CentOS case nginx.repo should look like:

[nginx]  
name=nginx repo  
baseurl=[http://nginx.org/packages/centos/$releasever/$basearch/](http://nginx.org/packages/centos/$releasever/$basearch/)  
gpgcheck=0  
enabled=1

In RHEL case :

[nginx]  
name=nginx repo  
baseurl=[http://nginx.org/packages/rhel/$releasever/$basearch/](http://nginx.org/packages/rhel/$releasever/$basearch/)  
gpgcheck=0  
enabled=1

For apt repositories /etc/apt/sources.list have to be appended.  
For Ubuntu 10.04 with:

deb [Index of /packages/ubuntu/](http://nginx.org/packages/ubuntu/) lucid nginx  
deb-src [Index of /packages/ubuntu/](http://nginx.org/packages/ubuntu/) lucid nginx

For Debian6:

deb [Index of /packages/debian/](http://nginx.org/packages/debian/) squeeze nginx  
deb-src [Index of /packages/debian/](http://nginx.org/packages/debian/) squeeze nginx

You may report package bugs to the mailing list, directly to me or on  
[http://trac.nginx.org](http://trac.nginx.org).

---

<div class="post-metadata">

**Author:** ![Sergey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Sergey\_B](https://www.ruby-forum.com/u/Sergey_B)\
**Post date:** [August 24, 2011, 4:48pm UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/2 "2011-08-24T16:48:19Z")

</div>

On Wed, 24 Aug 2011 13:22:58 +0400, Sergey B. wrote:

> Hi,
> 
> We have created apt and yum repositories for nginx users on Linux.  
> They are available on [Index of /packages/](http://nginx.org/packages/)  
> for CentOS/RHEL 5 and 6, Ubuntu 10.04 and Debian 6. There are plans  
> to update packages as soon  
> as new stable nginx versions are released.

Hi,

There are already “official” packages for Debian, and therefore also  
Ubuntu..  
What is the difference?

---

<div class="post-metadata">

**Author:** ![Sergey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Sergey\_B](https://www.ruby-forum.com/u/Sergey_B)\
**Post date:** [August 25, 2011, 10:52am UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/3 "2011-08-25T10:52:09Z")

</div>

On 24.08.2011, at 18:47, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> There are already “official” packages for Debian, and therefore also Ubuntu..  
> What is the difference?

All these packages was built with same configure options, with  
all standard modules (except modules depend on additional  
libraries like geoip or xslt) and without third-party modules.  
Each linux distribution has own release cycle, own policy,  
so we have several native nginx packages for major  
linux distribution built with different options and sometimes  
quite old. It is convenient to build last stable version of  
nginx with same parameters and with most of standard modules,  
first of all from support point of view both for us and, i hope,  
for nginx users.  
As for debian and ubuntu you need to switch to unstable  
or backports repository to get a fresh nginx version and this is not  
what most users want, for example, on production.  
Nevertheless nobody intend to compete with linux packagers,  
these package are not “better” then official ones, they are more  
predictable

---

<div class="post-metadata">

**Author:** ![Sergey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Sergey\_B](https://www.ruby-forum.com/u/Sergey_B)\
**Post date:** [August 25, 2011, 11:42am UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/4 "2011-08-25T11:42:08Z")

</div>

On Thu, Aug 25, 2011 at 09:51, Sergey B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> It is convenient to build last stable version of  
> nginx with same parameters and with most of standard modules,

Meaning you created yet another repository with packages configured  
according to what you thing are the best choices. What are they? Which  
modules? What’s after --configure? And can i add other modules at  
runtime or disable existing ones?

Otherwise, i still prefer compiling from source, but that’s me.

Nice to have the packages straight from the source though, instead of  
through a distro.

Cheers,  
Nuno

–  
“On the internet, nobody knows you’re a dog.”

---

<div class="post-metadata">

**Author:** ![Sergey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Sergey\_B](https://www.ruby-forum.com/u/Sergey_B)\
**Post date:** [August 25, 2011, 11:14am UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/5 "2011-08-25T11:14:21Z")

</div>

On Thu, 25 Aug 2011 12:51:16 +0400, Sergey B. wrote:

> […] It is convenient to build last stable version of  
> nginx with same parameters and with most of standard modules,  
> first of all from support point of view both for us and, i hope,  
> for nginx users.

I’m completely agree !

> As for debian and ubuntu you need to switch to unstable  
> or backports repository to get a fresh nginx version and this is not  
> what most users want, for example, on production.

Yes, you’re right. This is another debate, but I think switching to  
testing repo is good, since testing version is now almost considered as  
stable.

---

<div class="post-metadata">

**Author:** ![Sergey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Sergey\_B](https://www.ruby-forum.com/u/Sergey_B)\
**Post date:** [August 25, 2011, 12:00pm UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/6 "2011-08-25T12:00:44Z")

</div>

On 25.08.2011, at 13:41, Nuno Magalhes wrote:

> On Thu, Aug 25, 2011 at 09:51, Sergey B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > It is convenient to build last stable version of  
> > nginx with same parameters and with most of standard modules,
> 
> Meaning you created yet another repository with packages configured  
> according to what you thing are the best choices. What are they? Which  
> modules? What’s after --configure?

```
    ./configure \
            --prefix=/etc/nginx/ \
            --sbin-path=/usr/sbin/nginx \
            --conf-path=/etc/nginx/nginx.conf \
            --error-log-path=/var/log/nginx/error.log \
            --http-log-path=/var/log/nginx/access.log \
            --pid-path=/var/run/nginx.pid \
            --lock-path=/var/run/nginx.lock \
            --http-client-body-temp-path=/var/cache/nginx/client_temp 

```

–http-proxy-temp-path=/var/cache/nginx/proxy\_temp   
–http-fastcgi-temp-path=/var/cache/nginx/fastcgi\_temp   
–http-uwsgi-temp-path=/var/cache/nginx/uwcgi\_temp   
–http-scgi-temp-path=/var/cache/nginx/scgi\_temp   
–user=nginx   
–group=nginx   
–with-http\_ssl\_module   
–with-http\_realip\_module   
–with-http\_addition\_module   
–with-http\_sub\_module   
–with-http\_dav\_module   
–with-http\_flv\_module   
–with-http\_gzip\_static\_module   
–with-http\_random\_index\_module   
–with-http\_secure\_link\_module   
–with-http\_stub\_status\_module   
–with-mail   
–with-mail\_ssl\_module   
–with-file-aio   
–with-ipv6

srpm and debian source package are also available on mentioned link.

> And can i add other modules at  
> runtime or disable existing ones?

No, nginx do not support dynamic modules right now

---

<div class="post-metadata">

**Author:** ![Sergey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Sergey\_B](https://www.ruby-forum.com/u/Sergey_B)\
**Post date:** [August 25, 2011, 1:47pm UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/7 "2011-08-25T13:47:32Z")

</div>

I’ll just stick with the Ubuntu PPA packages as mentioned here:

[http://wiki.nginx.org/Install](http://wiki.nginx.org/Install)

---

<div class="post-metadata">

**Author:** ![Sergey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Sergey\_B](https://www.ruby-forum.com/u/Sergey_B)\
**Post date:** [August 25, 2011, 7:13pm UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/8 "2011-08-25T19:13:00Z")

</div>

On Wed, 2011-08-24 at 13:22 +0400, Sergey B. wrote:

> Hi,
> 
> We have created apt and yum repositories for nginx users on Linux. They are  
> available on [Index of /packages/](http://nginx.org/packages/)  
> for CentOS/RHEL 5 and 6, Ubuntu 10.04 and Debian 6.

I have updated the wiki with this info:

> **[GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki...](https://github.com/nginxinc/nginx-wiki)**
>
> ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com

Is there a particular reason there are both CentOS and RHEL  
repositories? To the best of my knowledge, CentOS = RHEL.

Regards,  
Cliff

---

<div class="post-metadata">

**Author:** ![Sergey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Sergey\_B](https://www.ruby-forum.com/u/Sergey_B)\
**Post date:** [August 26, 2011, 1:00pm UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/9 "2011-08-26T13:00:52Z")

</div>

Hi!

On Wed, Aug 24, 2011 at 13:22, Sergey B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> [nginx]  
> [skip]  
> gpgcheck=0  
> Maybe it will be better to sign provided RPMs?

–  
Boris D..

---

<div class="post-metadata">

**Author:** ![Sergey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Sergey\_B](https://www.ruby-forum.com/u/Sergey_B)\
**Post date:** [August 26, 2011, 9:27am UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/10 "2011-08-26T09:27:33Z")

</div>

On Aug 25, 2011, at 9:12 PM, Cliff W. wrote:

> I have updated the wiki with this info:
> 
> [GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com · GitHub](http://wiki.nginx.org/Install)

Thank you.

> Is there a particular reason there are both CentOS and RHEL  
> repositories? To the best of my knowledge, CentOS = RHEL.

Sure, one repository is a symlink to another at present. Two paths  
is an insurance against differences in the future, though they are  
hardly  
probable. And since i am building and testing rpms on centos it is  
unfair  
to name it rhel only.

---

<div class="post-metadata">

**Author:** ![Sergey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Sergey\_B](https://www.ruby-forum.com/u/Sergey_B)\
**Post date:** [August 26, 2011, 1:04pm UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/11 "2011-08-26T13:04:01Z")

</div>

FYI… RHEL 6 looks for repo’s by default in a 6Server directory, not  
6.

[http://nginx.org/packages/rhel/6Server/x86\_64/repodata/repomd.xml:](http://nginx.org/packages/rhel/6Server/x86_64/repodata/repomd.xml:)  
[Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404”  
Trying other mirror.

I changed my yum file, but just an FYI.

---

<div class="post-metadata">

**Author:** ![Sergey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Sergey\_B](https://www.ruby-forum.com/u/Sergey_B)\
**Post date:** [August 26, 2011, 2:03pm UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/12 "2011-08-26T14:03:25Z")

</div>

On 26.08.2011, at 14:59, Boris D. wrote:

> Hi!
> 
> On Wed, Aug 24, 2011 at 13:22, Sergey B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > [nginx]  
> > [skip]  
> > gpgcheck=0  
> > Maybe it will be better to sign provided RPMs?

rpms are signed already by the key with  
fingerprint 573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62  
uid nginx signing key [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

you can get public one from keyserver (by gpg --recv-key 7BD9BF62) and  
import it  
with rpm --import. Without public key import gpgcheck=1 would create  
more problems  
then it would solve.

---

<div class="post-metadata">

**Author:** ![Sergey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Sergey\_B](https://www.ruby-forum.com/u/Sergey_B)\
**Post date:** [August 26, 2011, 8:19pm UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/13 "2011-08-26T20:19:46Z")

</div>

One small suggestion for nginx.conf. Rather than using:

include /etc/nginx/conf.d/\*;

I’d suggest

include /etc/nginx/conf.d/\*.conf;

This prevents backup/temporary files that are typically created by  
editors from being processed as valid configuration (e.g. default~,  
#default#, etc).

Regards,  
Cliff

---

<div class="post-metadata">

**Author:** ![Sergey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Sergey\_B](https://www.ruby-forum.com/u/Sergey_B)\
**Post date:** [August 30, 2011, 8:28pm UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/14 "2011-08-30T20:28:06Z")

</div>

Hi!  
1.0.6 is still not there, though it is avaible for a day already.  
When I tried to build it myself, I’ve got a error:  
/usr/bin/install: cannot stat  
`/home/boris/rpmbuild/SOURCES/nginx.vh.default’: No such file or  
directory  
The same problem is with files logrotate (which is renamed to  
nginx.logrotate) and nginx.vh.ssl.  
Please, check your SRPM correctness.

–  
Boris D…

---

<div class="post-metadata">

**Author:** ![Sergey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Sergey\_B](https://www.ruby-forum.com/u/Sergey_B)\
**Post date:** [August 27, 2011, 7:30am UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/15 "2011-08-27T07:30:07Z")

</div>

On Thu, Aug 25, 2011 at 5:13 AM, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > or backports repository to get a fresh nginx version and this is not  
> > what most users want, for example, on production.
> 
> Yes, you’re right. This is another debate, but I think switching to testing  
> repo is good, since testing version is now almost considered as stable.

Since 2004 nginx latest development version has been in production for  
me 😉

Thank you for creating this repo, I will be adding it on Monday.

Stefan

---

<div class="post-metadata">

**Author:** ![Sergey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Sergey\_B](https://www.ruby-forum.com/u/Sergey_B)\
**Post date:** [August 31, 2011, 12:08pm UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/16 "2011-08-31T12:08:01Z")

</div>

On 26.08.2011, at 22:18, Cliff W. wrote:

> #default#, etc).  
> I agree, It makes sense to replace \* with \*.conf. Added in 1.0.6.

There may be the situation when you have not touched default nginx.conf,  
so it would be upgraded, but config files without .conf suffix were  
added  
to conf.d dir, and they would not be included after upgrade. I have no  
idea how  
to fix it with post/pre install scripts correctly, so check your configs  
after upgrade.

---

<div class="post-metadata">

**Author:** ![Sergey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Sergey\_B](https://www.ruby-forum.com/u/Sergey_B)\
**Post date:** [August 31, 2011, 3:53pm UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/17 "2011-08-31T15:53:30Z")

</div>

It’d be nice to have symlinks for other flavors of RHEL, such as SL  
(Scientyfic Linux) and CL (Cloud Linux). They should work as RHEL or  
CentOS, but .list file must be modified.

Posted at Nginx Forum:

> **[Re: nginx linux packages](https://forum.nginx.org/read.php?2,214221,214581#msg-214581)**
>
> Hi, We have created apt and yum repositories for nginx users on Linux. They are available on http://nginx.org/packages/ for CentOS/RHEL 5 and 6, Ubuntu 10.04 and Debian 6. There are plans to update packages as soon as new stable nginx versions are...

---

<div class="post-metadata">

**Author:** ![Sergey\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@Sergey\_B](https://www.ruby-forum.com/u/Sergey_B)\
**Post date:** [August 31, 2011, 2:17pm UTC](https://www.ruby-forum.com/t/nginx-linux-packages/211039/18 "2011-08-31T14:17:09Z")

</div>

On 30.08.2011, at 22:27, Boris D. wrote:

> Hi!  
> 1.0.6 is still not there, though it is avaible for a day already.

I have uploaded 1.0.6 rpm and deb today. Thank you for noting  
bug in srpm, I upload fixed version too.
