comparison xml/en/download.xml @ 141:2a88f137b1c6

ru proposed changes: * long lines reformated. * pathname and code elements added to dtd.
author Sergey Budnevitch <sb@waeme.net>
date Mon, 24 Oct 2011 15:28:45 +0000
parents ee7167b7334a
children 568b4e77c0d0
comparison
equal deleted inserted replaced
140:b9e5155d8f5d 141:2a88f137b1c6
132 132
133 </download> 133 </download>
134 134
135 </section> 135 </section>
136 136
137
137 <section name="Source Repository"> 138 <section name="Source Repository">
138 139
139 <para> 140 <para>
140 <list> 141 <list>
141 142
142 <item> 143 <item>
143 Read-only Subversion repository: <programlisting>svn://svn.nginx.org/nginx</programlisting> 144 Read-only Subversion repository:
145 <code>svn://svn.nginx.org/nginx</code>
144 </item> 146 </item>
145 147
146 <item> 148 <item>
147 <link url="http://trac.nginx.org/nginx/browser">Trac source browser</link> 149 <link url="http://trac.nginx.org/nginx/browser">Trac source browser</link>
148 </item> 150 </item>
150 </list> 152 </list>
151 </para> 153 </para>
152 154
153 </section> 155 </section>
154 156
157
155 <section name="Prebuilt Packages"> 158 <section name="Prebuilt Packages">
156 <para> 159
157 For automatic updates of the prebuilt Linux packages it is possible to configure yum repository 160 <para>
158 for RHEL/CentOS or apt repository for Debian/Ubuntu. 161 For automatic updates of the prebuilt Linux packages it is possible to
162 configure yum repository for RHEL/CentOS, or apt repository for Debian/Ubuntu.
159 </para> 163 </para>
160 164
161 <para> 165 <para>
162 To set up yum repository for the Linux distributions: 166 To set up yum repository for the Linux distributions:
163 <list> 167 <list>
175 </item> 179 </item>
176 180
177 <item> 181 <item>
178 <link url="http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm">CentOS 6</link> 182 <link url="http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm">CentOS 6</link>
179 </item> 183 </item>
184
180 </list> 185 </list>
181 install nginx-release package containing the yum config and the public key necessary to check signed rpms. 186 install the <code>nginx-release</code> package containing the yum config
182 Then run the command: 187 and the public key necessary to check signed RPMs,
188 then run the following command:
183 <programlisting> 189 <programlisting>
184 yum install nginx 190 yum install nginx
185 </programlisting> 191 </programlisting>
186 192
187 As an alternative, a repository config can be added manually. Create the file named nginx.repo in /etc/yum.repos.d and 193 As an alternative, a repository config can be added manually.
188 add configuration, like this: 194 Create the file named <pathname>/etc/yum.repos.d/nginx.repo</pathname>
195 with the following contents:
189 196
190 <programlisting> 197 <programlisting>
191 [nginx] 198 [nginx]
192 name=nginx repo 199 name=nginx repo
193 baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/ 200 baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/
194 gpgcheck=0 201 gpgcheck=0
195 enabled=1 202 enabled=1
196 </programlisting> 203 </programlisting>
197 204
198 Replace OS with rhel or centos, depending on the distribution you are running, and OSRELEASE with 5 or 6, for 5.x and 6.x 205 Replace “<code>OS</code>” with “<code>rhel</code>” or “<code>centos</code>”,
199 versions accordingly. 206 depending on the distribution used, and “<code>OSRELEASE</code>”
200 207 with “<code>5</code>” or “<code>6</code>”,
201 </para> 208 for 5.x or 6.x versions, respectively.
202 209 </para>
203 <para> 210
204 For Debian/Ubuntu append /etc/apt/sources.list with: 211 <para>
212 For supported Debian/Ubuntu versions append the following contents to
213 <pathname>/etc/apt/sources.list</pathname>:
205 214
206 <programlisting> 215 <programlisting>
207 deb http://nginx.org/packages/debian/ squeeze nginx 216 deb http://nginx.org/packages/debian/ squeeze nginx
208 deb-src http://nginx.org/packages/debian/ squeeze nginx 217 deb-src http://nginx.org/packages/debian/ squeeze nginx
209 </programlisting> 218 </programlisting>
210 219
211 in case of Debian 6, or for Ubuntu 10.04 with: 220 in case of Debian 6, or for Ubuntu 10.04 with
221 the following contents instead:
212 222
213 <programlisting> 223 <programlisting>
214 deb http://nginx.org/packages/ubuntu/ lucid nginx 224 deb http://nginx.org/packages/ubuntu/ lucid nginx
215 deb-src http://nginx.org/packages/ubuntu/ lucid nginx 225 deb-src http://nginx.org/packages/ubuntu/ lucid nginx
216 </programlisting> 226 </programlisting>