Create tgz packages

Parv parv at
Sun Jan 9 11:47:18 PST 2005

in message <pan.2005. at>,
wrote Christer Solskogen thusly...
> Is there a easy way of making packages of all installed ports?  (I
> guess it every port will get recompiled, but that doesnt matter to
> me.)

You may or may not need to escape some characters from your shell;
assuming sh ...

  for port in $( find  /var/db/pkg -mindepth 1 -type d )
    echo pkg_create -b $(basename "$port")

  - Parv


More information about the freebsd-questions mailing list