Yosemite macports update

Contributed by: akira on 2014年10月19日(日) 18:10 JST

Last modified on

Reinstall ports

To reinstall your ports:

  1. Save the list of installed ports:
    port -qv installed > myports.txt
    
  2. (optional) Save the list of requested ports:
    port echo requested | cut -d ' ' -f 1 > requested.txt
    
  3. Uninstall all installed ports:
    sudo port -f uninstall installed
    
  4. Clean any partially-completed builds:
    sudo port clean all
    
  5. Download and execute the restore_ports script. (If you installed MacPorts from source and put its Tcl package somewhere other than /Library/Tcl, then you'll need to use the -t option when you run restore_ports.tcl; see ./restore_ports.tcl -h.)
    curl -O https://svn.macports.org/repository/macports/contrib/restore_ports/restore_ports.tcl
    chmod +x restore_ports.tcl
    sudo ./restore_ports.tcl myports.txt
    
  6. (optional) Restore requested status: If you saved the list of requested ports, you can now restore the requested flags for your newly installed ports to their former states.
    sudo port unsetrequested installed
    < requested.txt xargs sudo port setrequested
    
     
https://trac.macports.org/wiki/Migration
コメント (0件)

Geeklog Site - Yosemite macports update
https://geeklog.craine.ne.jp/article.php?story=20141019181036484