moving to new machine same arch
Ryan Schmidt
ryandesign at macports.org
Sun Sep 6 05:58:48 PDT 2009
On Sep 6, 2009, at 07:47, Bradley Giesbrecht wrote:
> I have an intel c2d iMac and MacBook.
>
> I need to do some development on my MacBook using the same tools
> that or on my iMac.
>
> Couldn't I just copy /opt and the /Library/LaunchDaemons/
> org.macports.* files to my MacBook?
>
> Do I need anything from /Library/TCL?
>
>
> I think there is something on the wiki or somewhere else. If someone
> could point me to so docs that would be so helpful.
>
> I'm traveling with limited time to track this down.
I don't know if there is any documentation on this topic but it should
work, assuming both machines are running the same Mac OS X version.
You should copy all these directories, which I took from the uninstall
instructions [1]
/opt/local
/Applications/MacPorts
/Library/Tcl/macports1.0
/Library/LaunchDaemons/org.macports.*
/Library/Receipts/MacPorts*.pkg
This should give you a fully functional copy of your MacPorts
installation on your second computer.
Depending on how you do the copy, I'm not certain the hardlinks
MacPorts creates during activation will be preserved. If they aren't,
it will take more disk space on the second computer, but shouldn't be
a problem otherwise. If you want to fix this, I think you can just
deactivate and then reactivate each port. You could probably do that
all at once with "sudo port uninstall inactive && sudo port deactivate
installed && sudo port activate installed" or something like that.
[1] http://trac.macports.org/wiki/FAQ#uninstall
More information about the macports-users
mailing list