changeset 2325:b127237b615f

Install package from specific Alpine release.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Wed, 02 Jan 2019 00:27:39 +0200
parents a691d00452b3
children 1b3ff9b88a12
files alpine.rst
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/alpine.rst	Tue Jan 01 22:52:42 2019 +0200
+++ b/alpine.rst	Wed Jan 02 00:27:39 2019 +0200
@@ -56,8 +56,27 @@
 Install package::
 
   $ sudo apk add bash
+
+Install local package::
+
   $ sudo apk add --allow-untrusted /path/to/file.apk
 
+To install package from specific Alpine release tag extra repository URL in
+``/etc/apk/repositories``::
+
+  @edge http://nldl-cdn.alpinelinux.org/alpine/edge/main
+
+and pin dependencies to tag::
+
+  $ sudo apk add bash@edge
+
+To avoid registering repository in ``/etc/apk/repositories`` pass repository URL and fixate package
+version::
+
+  $ sudo apk add postgresql==9.6.10-r0 --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/v3.6/main
+
+To select Alpine release, package and package version use https://pkgs.alpinelinux.org/packages
+
 Do not grab package index with ``--no-cache`` option to reduce installation size::
 
   $ apk add --no-cache bash