Subject: Re: Installing same packages to other computer
To: Vesa Norrman <>
From: Jeremy C. Reed <>
List: netbsd-users
Date: 09/11/2003 15:46:54
On Fri, 12 Sep 2003, Vesa Norrman wrote:

> Hello, what is a convenient way to first make a list of packages
> installed on one computer and then compile and install the same packages
> in another computer? Using pkgsrc of course. The computers will have
> different OS which makes compiling necessary.

One idea is to do something like:

 pkg_info -B -a | grep ^PKGPATH= | cut -c 9- | tee my-packages

Then on other system:

 cd /usr/pkgsrc
 while read pkg ; do (cd $pkg && make install ) ; done < my-packages

(This will end up attempting the same multiple times, because of

   Jeremy C. Reed