Mercurial > hg > nginx-site
comparison xml/en/linux_packages.xml @ 2661:991cf4287c36
Linux packages: added repository pinning instructions for Alpine Linux.
author | Konstantin Pavlov <thresh@nginx.com> |
---|---|
date | Wed, 03 Mar 2021 17:39:49 +0300 |
parents | aea8531ede83 |
children | e4d370d43176 |
comparison
equal
deleted
inserted
replaced
2660:aea8531ede83 | 2661:991cf4287c36 |
---|---|
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="55"> | 10 rev="56"> |
11 | 11 |
12 <section name="Supported distributions and versions" id="distributions"> | 12 <section name="Supported distributions and versions" id="distributions"> |
13 | 13 |
14 <para> | 14 <para> |
15 nginx packages are available for the following Linux distributions and | 15 nginx packages are available for the following Linux distributions and |
390 </programlisting> | 390 </programlisting> |
391 | 391 |
392 To set up the apk repository for stable nginx packages, | 392 To set up the apk repository for stable nginx packages, |
393 run the following command: | 393 run the following command: |
394 <programlisting> | 394 <programlisting> |
395 printf "%s%s%s\n" \ | 395 printf "%s%s%s%s\n" \ |
396 "@nginx " \ | |
396 "http://nginx.org/packages/alpine/v" \ | 397 "http://nginx.org/packages/alpine/v" \ |
397 `egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release` \ | 398 `egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release` \ |
398 "/main" \ | 399 "/main" \ |
399 | sudo tee -a /etc/apk/repositories | 400 | sudo tee -a /etc/apk/repositories |
400 </programlisting> | 401 </programlisting> |
401 | 402 |
402 If you would like to use mainline nginx packages, | 403 If you would like to use mainline nginx packages, |
403 run the following command instead: | 404 run the following command instead: |
404 <programlisting> | 405 <programlisting> |
405 printf "%s%s%s\n" \ | 406 printf "%s%s%s%s\n" \ |
407 "@nginx " \ | |
406 "http://nginx.org/packages/mainline/alpine/v" \ | 408 "http://nginx.org/packages/mainline/alpine/v" \ |
407 `egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release` \ | 409 `egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release` \ |
408 "/main" \ | 410 "/main" \ |
409 | sudo tee -a /etc/apk/repositories | 411 | sudo tee -a /etc/apk/repositories |
410 </programlisting> | 412 </programlisting> |
451 sudo mv /tmp/nginx_signing.rsa.pub /etc/apk/keys/ | 453 sudo mv /tmp/nginx_signing.rsa.pub /etc/apk/keys/ |
452 </programlisting> | 454 </programlisting> |
453 | 455 |
454 To install nginx, run the following command: | 456 To install nginx, run the following command: |
455 <programlisting> | 457 <programlisting> |
456 sudo apk add nginx | 458 sudo apk add nginx@nginx |
459 </programlisting> | |
460 | |
461 The <literal>@nginx</literal> tag should also be specified when installing | |
462 packages with <link url="#dynmodules">dynamic modules</link>: | |
463 <programlisting> | |
464 sudo apk add nginx-module-image-filter@nginx nginx-module-njs@nginx | |
457 </programlisting> | 465 </programlisting> |
458 </para> | 466 </para> |
459 | 467 |
460 </section> | 468 </section> |
461 | 469 |