Re-do MacPorts after upgrading from Tiger to Leopard on PPC?

Bradley Giesbrecht brad at pixilla.com
Fri Mar 13 09:17:26 PDT 2009


On Mar 13, 2009, at 8:44 AM, Joshua Root wrote:

> Bradley Giesbrecht wrote:
>> On Mar 12, 2009, at 10:43 PM, Bryan Blackburn wrote:
>>
>>> On Thu, Mar 12, 2009 at 09:57:17PM -0700, Jerry said:
>>>> I just upgraded the OS from Tiger to Leopard on PPC. Do I need to  
>>>> re-
>>>> install any or all of my MacPorts stuff?
>>>
>>> Yes, unfortunately MacPorts doesn't handle that case well since many
>>> ports
>>> you have installed were probably built with 10.4-specific bits.  The
>>> safest
>>> method is to move /opt/local aside (eg, to /opt/local-10.4), do a  
>>> new
>>> MacPorts install then install those ports you want/need.  You can  
>>> use
>>> 'port
>>> installed' prior to moving /opt/local aside to see what you  
>>> currently
>>> have.
>>>
>>> Bryan
>>
>>
>> Could you force a rebuild?
>>
>> port -f upgrade installed
>
> Nope. Selected darwin_8* variants would be preserved. This is fixed in
> trunk.

Would this work or is there another shorter path to achieving the same  
thing.

port installed | sed '1d' | awk '{print $1$2}' > installed.txt
port -f uninstall installed
for item in $(cat installed.txt); do port install $item done


//Brad


More information about the macports-users mailing list