Install package from specific Alpine release.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 02 Jan 2019 00:27:39 +0200
changeset 2325 b127237b615f
parent 2324 a691d00452b3
child 2326 1b3ff9b88a12
Install package from specific Alpine release.
alpine.rst
--- 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