Is it not possible to install old version packages?
-
- Offline
- 2 years 3 months ago
- 2015-12-02
I am using alpine for docker, and am pinning my dependencies to specific versions to make my images reproducible.
For example, I had postgresql-client pinned to version =9.4.4-r0.
However, the postgres package was updated to postgresql-client-9.4.5-r0:
ERROR: unsatisfiable constraints:
postgresql-client-9.4.5-r0:
breaks: world[postgresql-client=9.4.4-r0]
An apk search only reveals the newest version:
$ apk search postgresql-client
postgresql-client-9.4.5-r0
It is not possible to download old versions of packages? I thought pinning version numbers meant it was possible to always get that version. Otherwise, what is the point of putting =9.4.4-r0 if it will break my builds when a new version is added to the repository? What if 9.4.5 had introduced a breaking change and I wanted to stay on 9.4.4?
Cheers,
Amedee
Perhaps you would be better off pinning an Alpine Linux release.
http://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management#Repository_pinning
You can download packages from any mirror that has index list enabled, such as http://dl-3.alpinelinux.org/alpine/
No, this has to be a misunderstanding. How can I install a fixed version? That HAS to be possible.
konrad, give me an example
Currently, there is no way to install arbitrary older versions of a package from official repositories in Alpine Linux. The best thing you can achieve is using repositories of the earlier releases:
+1 to this please!
(I'd +100 if I could! ;-) )
Enabling reproducible research is becoming critical. If we don't know exactly what version of the software we're using - how can we verify something?
+1
The possibility to install older package versions (+ makedepends on specific versions) could be also useful to build software that requires bootstrapping, e.g. ghc or rust.
https://blog.rust-lang.org/2016/07/07/Rust-1.10.html
Being able to specify version of package is needed asap please. I have been trying to switch all my docker images to use alpine. We use ruby 2.0 in some projects and we want to be able to specify that in apk add.
This feature would greatly help.
Thanks!
Confirming that this would be a very welcome feature. We're using build images to enforce identical build environments, and it's a problem when it's not possible to rebuild the build images due to versions being upgraded in apk.
For instance a build image for NodeJS would be:
Trying to rebuild this image today, I had to upgrade the node version to
6.7.0
due to repository updates.+1
I'd like this for the same reason others have mentioned: reproducible Docker images.
It would be great to have a repository of all the .apk files that were published, this way we could, at least, download the ones we want and create private repositories (as described here : https://engineering.fundingcircle.com/blog/2015/04/28/create-alpine-linux-repository/) with the packages that suit our needs for our Docker images...
I see an answer here that seems to say you can: https://superuser.com/a/1058665, is that answer wrong then?
That looks like another way to pin versions for a version that exists in the repo. That won't work if the version you want is not in the repository.
there is only 2 options : modify APKBUILD or manual build