Subject: Re: recursive pkg_tarup?
To: Steven M. Bellovin <smb@research.att.com>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 09/27/2004 17:25:38
On Mon, 27 Sep 2004, Steven M. Bellovin wrote:
> Thanks -- that will save me some trouble, though it does need a bit of
> tweaking to deal with lines like
>
> {perl>=5.0,perl-thread>=5.0}
That should work fine too. It will do:
$ pkg_info -qn '{perl>=5.0,perl-thread>=5.0}'
$
(No output because perl has no requirements.)
pkg_info uses fnmatch(3) and also understands {,} style alternatives.
For example:
rainier:/usr/pkgsrc$ pkg_info -e '{perl>=5.0,perl-thread>=5.0}'
perl-5.6.1nb7
And an improvement to my earlier examples for you would be to add after
the sort a pkg_info -e to get best version.
list_requires kde | sort -u | xargs -n 1 pkg_info -e
Jeremy C. Reed
technical support & remote administration
http://www.pugetsoundtechnology.com/