Mercurial > hg > nginx-site
comparison xml/en/linux_packages.xml @ 2660:aea8531ede83
Linux packages: added repository pinning instructions for Debian/Ubuntu.
author | Konstantin Pavlov <thresh@nginx.com> |
---|---|
date | Wed, 17 Feb 2021 15:02:25 +0300 |
parents | eb508d8c1c31 |
children | 991cf4287c36 |
comparison
equal
deleted
inserted
replaced
2659:8dbca6383ec3 | 2660:aea8531ede83 |
---|---|
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="54"> | 10 rev="55"> |
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 |
226 <programlisting> | 226 <programlisting> |
227 echo "deb http://nginx.org/packages/mainline/debian `lsb_release -cs` nginx" \ | 227 echo "deb http://nginx.org/packages/mainline/debian `lsb_release -cs` nginx" \ |
228 | sudo tee /etc/apt/sources.list.d/nginx.list | 228 | sudo tee /etc/apt/sources.list.d/nginx.list |
229 </programlisting> | 229 </programlisting> |
230 | 230 |
231 Set up repository pinning to prefer our packages over | |
232 distribution-provided ones: | |
233 <programlisting> | |
234 echo -e "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" \ | |
235 | sudo tee /etc/apt/preferences.d/99nginx | |
236 </programlisting> | |
237 | |
231 Next, import an official nginx signing key so apt could verify the packages | 238 Next, import an official nginx signing key so apt could verify the packages |
232 authenticity: | 239 authenticity: |
233 <programlisting> | 240 <programlisting> |
234 curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add - | 241 curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add - |
235 </programlisting> | 242 </programlisting> |
276 If you would like to use mainline nginx packages, | 283 If you would like to use mainline nginx packages, |
277 run the following command instead: | 284 run the following command instead: |
278 <programlisting> | 285 <programlisting> |
279 echo "deb http://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx" \ | 286 echo "deb http://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx" \ |
280 | sudo tee /etc/apt/sources.list.d/nginx.list | 287 | sudo tee /etc/apt/sources.list.d/nginx.list |
288 </programlisting> | |
289 | |
290 Set up repository pinning to prefer our packages over | |
291 distribution-provided ones: | |
292 <programlisting> | |
293 echo -e "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" \ | |
294 | sudo tee /etc/apt/preferences.d/99nginx | |
281 </programlisting> | 295 </programlisting> |
282 | 296 |
283 Next, import an official nginx signing key so apt could verify the packages | 297 Next, import an official nginx signing key so apt could verify the packages |
284 authenticity: | 298 authenticity: |
285 <programlisting> | 299 <programlisting> |