[indiana-discuss] [pkg-discuss] pkg won't install older versions of packages

Danek Duvall danek.duvall at sun.com
Wed Apr 22 13:48:26 PDT 2009


On Wed, Apr 22, 2009 at 03:39:43PM -0500, Shawn Walker wrote:

> Tom Mueller wrote:
>> Shawn Walker wrote:
>>> pkg install foo at 1.0
>>> -- installs the latest build_release, branch and timestamp for a 1.0 
>>> release of foo and fails if it cannot
>> If the repository has foo at 1.0, foo at 1.0.1, foo at 1.0.2, foo at 1.1, and foo at 2.0, 
>> I think I'd like to have
>>
>> pkg install foo at 1.0
>>
>> give me foo at 1.0.2. If I really want foo at 1.0 in this case, I'd like to 
>> specify more information, possibly including the timestamp.
>
> I'm not certain.
>
> That seems like "fuzzy matching" on a version component, and lacks clear 
> intent on the part of the user.

Perhaps, but it does match the way dependencies work.  It makes a lot of
sense to me -- "install a 1.0 product, but if it's been patched up to ..4,
then install that".  Like "pkg install python at 2.4" gives you python at 2.4.4.
Why not?  We've talked about version syntax that would force an exact
match, but in this case, it could simply be a flag to pkg install.

Danek



More information about the indiana-discuss mailing list