On 07/04/16 22:11, Tinker wrote: > On 2016-07-05 10:09, Tinker wrote: > .. >> 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. > > Wait, can "%" be used to install the latest version for unimportant > packages? > > Or at least make pkg_add choose *some* version for me because I totally > don't care, this would just be a trick to automate system installation > more - > > The *oldest* version would be fine too! >
Write a little script to fetch the directory of the package repository, apply /whatever logic you want/, then pkg_add that exact package. Done. The contention that "99%" or "95%" of users don't care what version...I completely disagree with. I would call this, at best, a very special case. Think about it. If someone is MAINTAINING multiple versions of a package, they are doing it because they feel there is some REASON that multiple versions. OpenBSD developers aren't fools, they are some of the brightest people you will ever hope to get an e-mail from. They have no shortage of things to occupy their time. They aren't going to maintain more than one version of a package for giggles. Nick.