Transferring ports

Doug Poland doug at
Thu Mar 20 19:24:12 UTC 2008

Ivan Voras wrote:
> On 20/03/2008, Doug Poland <doug at> wrote:
>> Peter Pentchev wrote:
>>  > On Fri, Mar 14, 2008 at 12:02:42AM +0300, Dmitry Marakasov wrote:
>>  >> * Ivan Voras (ivoras at wrote:
>>  >>> Is there a utility that would do that, and if not, does anyone have the
>>  >>> time to write one?
>>   >>
>> Would this not be an appropriate use for packages?  If one creates a
>>  package for every installed port on the "host" system, then one simply
>>  installs the package on the target system.
> Yes, that's exactly what I need (the same functionality as "pkg_create
> -b" + install on the other system), only without the actual package
> file being created. Pipes would also be acceptable (piping the output
> of pkg_create from one machine to the other, etc).
Too bad you cannot accept the package file.  If pkg_create would accept 
a - instead of specifying the output tarball, then one could do some foo 
with nc, i.e.,

target# nc -l 1234 | tar -xf -
source# pkg_create -b mypackage - | nc target 1234


More information about the freebsd-ports mailing list