Keeping desktop and laptop in sync

Bradley Giesbrecht brad at pixilla.com
Wed Nov 17 10:55:17 PST 2010


On Nov 17, 2010, at 7:33 AM, Andrea D'Amore wrote:

> On Wed, Nov 17, 2010 at 2:57 PM, Tony McDaniel  
> <tony at tonymcdaniel.com> wrote:
>> Is there any way to either
>> sync the /opt/local directories, or export a list of installed  
>> ports from
>> one to load onto the other?
>
> This lists installed ports' names:
>   port installed | grep -v "The following ports" | cut -d \@ -f 1
>
> you can redirect the output to a file on a computer and then install
> those onto the other using xargs like
>  cat installed.ports | xargs -n 1 port install
>
> to install each port separately.

If you use this approach and you have a newer install you may want to  
use "requested".

port echo requested


Regards,
Bradley



More information about the macports-users mailing list