Install package from specific Alpine release.
--- 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