-> Noise
My original intention when I asked this question was for tools where I
never ever will care about version number.
For Squid I don't. I guess some compression tool, for instance, would
count too - likely its behavior is exactly the same, and if it's not I
would be fine with realizing first from program misbehavior, as it's so
unimportant anyhow.
(Of course other tools are much more version-sensitive, such as
programming tools like Python, as many pointed out. And there in
particular if some package X says it needs package Y in version Z.)
What made me ask this problem was Squid on 5.8, where there were two
versions. I realize that two versions of a very similar package is very
rare otherwise though, so maybe in the bigger picture the question
didn't really make sense.
-> Question
pkg_add (at least on 5.8) matches either the whole package name, or
package name + fully specified version.
Works:
# pkg_add bzip2-1.0.6p1
quirks-2.114 signed on 2015-08-09T11:57:52Z
# pkg_add bzip2
quirks-2.114 signed on 2015-08-09T11:57:52Z
Does not work:
# pkg_add bzip2-1.0.
quirks-2.114 signed on 2015-08-09T11:57:52Z
Error from
http://mirror.switch.ch/ftp/pub/OpenBSD/5.8/packages/amd64/bzip2-1.0..tgz
ftp: Error retrieving file: 404 Not Found
Can't find bzip2-1.0.
--- bzip2-1.0. -------------------
Can't install bzip2-1.0.: not found
# pkg_add bzip2-1.0
quirks-2.114 signed on 2015-08-09T11:57:52Z
Error from
http://.../ftp/pub/OpenBSD/5.8/packages/amd64/bzip2-1.0.tgz
ftp: Error retrieving file: 404 Not Found
Can't find bzip2-1.0
--- bzip2-1.0 -------------------
Can't install bzip2-1.0: not found
# pkg_add bzip2-1.0.6
quirks-2.114 signed on 2015-08-09T11:57:52Z
Error from
http://.../ftp/pub/OpenBSD/5.8/packages/amd64/bzip2-1.0.6.tgz
ftp: Error retrieving file: 404 Not Found
Can't find bzip2-1.0.6
--- bzip2-1.0.6 -------------------
Can't install bzip2-1.0.6: not found
Is there any way in CURRENT I could get the latest 1.0.-series version?