[MacPorts] Migration modified

Rainer Müller raimue at macports.org
Thu Oct 31 03:10:47 PDT 2013


On 2013-10-31 01:40, Clemens Lang wrote:
>>  === Reinstall ports === #ports
>>  
>>  To reinstall your ports:
>>  
>>   1. Save the list of installed ports:
>>  {{{
>> -port -qv installed > myports.txt
>> +port -qv installed > my_installed_ports.txt
>> +port list requested | perl -pe 's/ .*//g' | sort -u > my_requested_ports.txt
>>  }}}
> 
> port list probably doesn't do what you expect it to do. See
> http://trac.macports.org/wiki/FAQ#portlist for an explanation. The
> better alternative here probably is 'port -q installed requested',
> because it preserves the variant information, something your port list
> approach does not. Additionally, port list is a lot slower.

To exclude duplicates due to inactive ports, we could also recommend:
  port installed requested and active

Rainer


More information about the macports-dev mailing list