i keep *trying* to move from portupgrade to portmaster

Anonymous swell.k at gmail.com
Thu Aug 12 18:12:12 UTC 2010


Dominic Fandrey <kamikaze at bsdforen.de> writes:

> On 07/08/2010 02:46, Adam Vande More wrote:
>> On Fri, Aug 6, 2010 at 5:11 PM, Doug Barton <dougb at freebsd.org> wrote:
>> 
>>> On 08/06/2010 15:03, Adam Vande More wrote:
>>>
>>> for pkg in /var/db/pkg/* ; do
>>>        pkg_create -b $pkg
>>> done
>>>
>> 
>
> You guys are loosing opportunities to boast with your shell one liners
>
> # pkg_info -Ea | xargs -n1 pkg_create -b

Why do you need xargs(1) when pkg_create(1) supports regexps as well as
simple globs?

  $ pkg_create -b \*        # all packages
  $ pkg_create -xb firefox  # only firefox


More information about the freebsd-ports mailing list