Mercurial > hg > nginx-site
comparison xml/en/linux_packages.xml @ 2323:eaef8f4ca921
Added Alpine Linux.
author | Konstantin Pavlov <thresh@videolan.org> |
---|---|
date | Wed, 30 Jan 2019 13:04:50 +0300 |
parents | bb03e6ac2f16 |
children | 3cf6a0cbec12 |
comparison
equal
deleted
inserted
replaced
2322:bb03e6ac2f16 | 2323:eaef8f4ca921 |
---|---|
5 <!DOCTYPE article SYSTEM "../../dtd/article.dtd"> | 5 <!DOCTYPE article SYSTEM "../../dtd/article.dtd"> |
6 | 6 |
7 <article name="nginx: Linux packages" | 7 <article name="nginx: Linux packages" |
8 link="/en/linux_packages.html" | 8 link="/en/linux_packages.html" |
9 lang="en" | 9 lang="en" |
10 rev="31" | 10 rev="32" |
11 toc="no"> | 11 toc="no"> |
12 | 12 |
13 <section id="distributions"> | 13 <section id="distributions"> |
14 | 14 |
15 <para> | 15 <para> |
111 <td>x86_64</td> | 111 <td>x86_64</td> |
112 </tr> | 112 </tr> |
113 | 113 |
114 <tr> | 114 <tr> |
115 <td width="30%">15</td> | 115 <td width="30%">15</td> |
116 <td>x86_64</td> | |
117 </tr> | |
118 | |
119 </table> | |
120 </para> | |
121 | |
122 <para> | |
123 Alpine: | |
124 | |
125 <table note="yes"> | |
126 | |
127 <tr> | |
128 <td width="30%">Version</td> | |
129 <td>Supported platforms</td> | |
130 </tr> | |
131 | |
132 <tr> | |
133 <td width="30%">3.8</td> | |
116 <td>x86_64</td> | 134 <td>x86_64</td> |
117 </tr> | 135 </tr> |
118 | 136 |
119 </table> | 137 </table> |
120 </para> | 138 </para> |
335 </programlisting> | 353 </programlisting> |
336 </para> | 354 </para> |
337 | 355 |
338 </section> | 356 </section> |
339 | 357 |
358 | |
359 <section name="Alpine" id="Alpine"> | |
360 | |
361 <para> | |
362 Install the prerequisites: | |
363 <programlisting> | |
364 sudo apk add openssl curl ca-certificates | |
365 </programlisting> | |
366 | |
367 To set up the apk repository for stable nginx packages, | |
368 run the following command: | |
369 <programlisting> | |
370 printf "%s%s%s\n" \ | |
371 "http://nginx.org/packages/alpine/v" \ | |
372 `egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release` \ | |
373 "/main" \ | |
374 | sudo tee -a /etc/apk/repositories | |
375 </programlisting> | |
376 | |
377 If you would like to use mainline nginx packages, | |
378 run the following command instead: | |
379 <programlisting> | |
380 printf "%s%s%s\n" \ | |
381 "http://nginx.org/packages/mainline/alpine/v" \ | |
382 `egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release` \ | |
383 "/main" \ | |
384 | sudo tee -a /etc/apk/repositories | |
385 </programlisting> | |
386 | |
387 Next, import an official nginx signing key so apk could verify | |
388 the packages authenticity. | |
389 Fetch the key: | |
390 <programlisting> | |
391 curl -o /tmp/nginx_signing.rsa.pub https://nginx.org/keys/nginx_signing.rsa.pub | |
392 </programlisting> | |
393 | |
394 Verify that downloaded file contains the proper key: | |
395 <programlisting> | |
396 openssl rsa -pubin -in /tmp/nginx_signing.rsa.pub -text -noout | |
397 </programlisting> | |
398 | |
399 The output should contain the following modulus: | |
400 <programlisting> | |
401 Public-Key: (2048 bit) | |
402 Modulus: | |
403 00:fe:14:f6:0a:1a:b8:86:19:fe:cd:ab:02:9f:58: | |
404 2f:37:70:15:74:d6:06:9b:81:55:90:99:96:cc:70: | |
405 5c:de:5b:e8:4c:b2:0c:47:5b:a8:a2:98:3d:11:b1: | |
406 f6:7d:a0:46:df:24:23:c6:d0:24:52:67:ba:69:ab: | |
407 9a:4a:6a:66:2c:db:e1:09:f1:0d:b2:b0:e1:47:1f: | |
408 0a:46:ac:0d:82:f3:3c:8d:02:ce:08:43:19:d9:64: | |
409 86:c4:4e:07:12:c0:5b:43:ba:7d:17:8a:a3:f0:3d: | |
410 98:32:b9:75:66:f4:f0:1b:2d:94:5b:7c:1c:e6:f3: | |
411 04:7f:dd:25:b2:82:a6:41:04:b7:50:93:94:c4:7c: | |
412 34:7e:12:7c:bf:33:54:55:47:8c:42:94:40:8e:34: | |
413 5f:54:04:1d:9e:8c:57:48:d4:b0:f8:e4:03:db:3f: | |
414 68:6c:37:fa:62:14:1c:94:d6:de:f2:2b:68:29:17: | |
415 24:6d:f7:b5:b3:18:79:fd:31:5e:7f:4c:be:c0:99: | |
416 13:cc:e2:97:2b:dc:96:9c:9a:d0:a7:c5:77:82:67: | |
417 c9:cb:a9:e7:68:4a:e1:c5:ba:1c:32:0e:79:40:6e: | |
418 ef:08:d7:a3:b9:5d:1a:df:ce:1a:c7:44:91:4c:d4: | |
419 99:c8:88:69:b3:66:2e:b3:06:f1:f4:22:d7:f2:5f: | |
420 ab:6d | |
421 Exponent: 65537 (0x10001) | |
422 </programlisting> | |
423 | |
424 Finally, move the key to apk trusted keys storage: | |
425 <programlisting> | |
426 sudo mv /tmp/nginx_signing.rsa.pub /etc/apk/keys/ | |
427 </programlisting> | |
428 | |
429 To install nginx, run the following command: | |
430 <programlisting> | |
431 sudo apk add nginx | |
432 </programlisting> | |
433 </para> | |
434 | |
435 </section> | |
436 | |
340 </section> | 437 </section> |
341 | 438 |
342 | 439 |
343 <section name="Source Packages" id="sourcepackages"> | 440 <section name="Source Packages" id="sourcepackages"> |
344 | 441 |
351 The <literal>default</literal> branch holds packaging sources for the current | 448 The <literal>default</literal> branch holds packaging sources for the current |
352 mainline version, while <literal>stable-*</literal> branches contain latest | 449 mainline version, while <literal>stable-*</literal> branches contain latest |
353 sources for stable releases. | 450 sources for stable releases. |
354 To build binary packages, run <command>make</command> in | 451 To build binary packages, run <command>make</command> in |
355 <path>debian/</path> directory on Debian/Ubuntu, or in | 452 <path>debian/</path> directory on Debian/Ubuntu, or in |
356 <path>rpm/SPECS/</path> on RHEL/CentOS/SLES. | 453 <path>rpm/SPECS/</path> on RHEL/CentOS/SLES, or in |
454 <path>apk/</path> on Alpine. | |
357 </para> | 455 </para> |
358 | 456 |
359 <para> | 457 <para> |
360 Packaging sources are distributed under the same | 458 Packaging sources are distributed under the same |
361 <link url="../LICENSE">2-clause BSD-like license</link> used by nginx. | 459 <link url="../LICENSE">2-clause BSD-like license</link> used by nginx. |