# HG changeset patch # User Oleksandr Gavenko # Date 1546381659 -7200 # Node ID b127237b615f4aa4393457725c7ffd6be92ed965 # Parent a691d00452b3d113ebcc28e6c0651e0ce567c26e Install package from specific Alpine release. diff -r a691d00452b3 -r b127237b615f 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