in message <[EMAIL PROTECTED]>,
wrote Parv thusly...
>
> in message <[EMAIL PROTECTED]>,
> wrote Christer Solskogen thusly...
> >
> > Is there a easy way of making packages of all installed ports?
> 
> assuming sh ...
> 
>   for port in $( find  /var/db/pkg -mindepth 1 -type d )
>   do
>     echo pkg_create -b $(basename "$port")
      ^ ^ ^ ^ ^ ^ ^ ^
      ^ ^ ^ ^ ^ ^ ^ ^
Oops, forgot to undo the echo after testing; please remove it when
one is ready to create the packages.


>   done


Below is another way ...

  find  /var/db/pkg -mindepth 1 -type d  \
  | while read port
    do
      pkg_create -b $(basename "$port")
    done



  - Parv

-- 

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to