Here's what I did:

cd /opt/local/var/macports/software
/bin/ls -1d * > ~/todo.mp
cd
sudo mv /opt/local /var/tmp/old_macports
cd src/macports/trunk/base
./configure && make && sudo make install
for f in $(cat todo.mp ); do [[ -d /opt/local/var/macports/software/ $f ]] || sudo port -v install $f; done

I'm sure there's something ports option to do that, but /shrug...


On Jun 9, 2009, at 13:36, Darren Weber wrote:

What's the recommended series of command lines for that?

Thanks!
Darren

On Tue, Jun 9, 2009 at 8:19 AM, Joshua Root <[email protected]> wrote:

On 2009-6-9 22:15, Tim Visher wrote:
Hi Darren,

On Tue, Jun 9, 2009 at 1:20 AM, Darren Weber<[email protected]> wrote:
What happens to a MacPorts installation when we install a distribution upgrade to OSX, say Leopard to Snow Leopard? Do we need to backup the MacPorts installation, or is the ${prefix} path immune to the upgrade?
What
about startup items (launchd or anything that violates the mtree)?

I can't be sure technically but I've upgraded OS X for every release
since MacPorts came out (Back when it was called DarwinPorts. Jaguar?)
and I've never had to reinstall it.  So, anecdotally I think you're
safe. If you care very deeply you should of course back it up just in
case.

Both MacPorts base and each port are built for a specific major OS
version. Maybe they'll work acceptably on a newer version, maybe they
won't. The only safe option has always been to record your installed
ports, uninstall MacPorts entirely, install the correct base version for
your OS, then install your ports again.

- Josh

_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to