Version number of openjdk6 port

Marcin Wisnicki mwisnicki+freebsd at gmail.com
Fri Apr 8 22:28:26 UTC 2011


On Fri, 08 Apr 2011 15:48:10 -0400, John Baldwin wrote:

> Hmm, I can probably workaround this then using an explicit comparison
> rule (so it doesn't use >0).  It would be nice if we had an official way
> to match a package with "any version".  Perhaps "pkg_info -E 'pkg-*'" if
> we assume that package names can never have dashes in them (to avoid
> problems, with, say, 'foo-*' matching both foo-1.0 and foo-bar-1.0.). 


You can use regular expression. Everything after last hyphen is a version.

pkg_info -EX "^xorg-[^-]+$"


> Oh, we already have those types of packages:
> 
> xorg-7.5            X.Org complete distribution metaport xorg-apps-7.5_1
>     X.org apps meta-port
> 
> The problem is how can software generically say "is any version of the
> foo package installed".  It would seem we don't support that currently?




More information about the freebsd-java mailing list