Changes between Version 62 and Version 63 of Migration
- Timestamp:
- Oct 31, 2013, 1:40:31 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Migration
v62 v63 18 18 ==== OS X 10.9 Mavericks ==== 19 19 20 MacPorts require Xcode, which is available for free on the Mac App Store. 21 {{{ 22 sudo xcode-select --install 23 sudo xcodebuild -license 24 }}} 20 For minimum support of MacPorts, you need the Command Line Tools, which can be installed using `xcode-select --install`. If you are installing MacPorts from source, you will also want to run `sudo xcodebuild -license`. Note that some ports will require a full Xcode installation, which is available for free on the Mac App Store. 21 25 22 === Reinstall MacPorts === 26 23 … … 33 30 Several other settings in macports.conf have changed their defaults over the years. Take a moment to compare each line of your macports.conf with the corresponding line in macports.conf.default in the same directory. Unless you know a reason why a line your settings file should be different from the defaults, adopt the line from the defaults file. 34 31 35 {{{36 cp /opt/local/etc/macports/macports.conf.default /opt/local/etc/macports/macports.conf37 }}}38 39 40 32 === Reinstall ports === #ports 41 33 … … 44 36 1. Save the list of installed ports: 45 37 {{{ 46 port -qv installed > my_installed_ports.txt 47 port list requested | perl -pe 's/ .*//g' | sort -u > my_requested_ports.txt 38 port -qv installed > myports.txt 48 39 }}} 49 40 2. Uninstall all installed ports: … … 55 46 sudo port clean all 56 47 }}} 57 4. Install your old ports:48 4. Browse `myports.txt` and install the ports that you actually want to use (as opposed to those that are only needed as dependencies) one by one, remembering to specify the appropriate variants: 58 49 {{{ 59 sudo port install $(cat my_requested_ports.txt | perl -pe 's/\n/ /g')50 sudo port install portname +variant1 +variant2 … 60 51 }}} 52 Note that if you have specified variants which are not the default, you may need to install ports in an order other than the alphabetical order recorded in `myports.txt`. 61 53 62 54 ==== Automatically reinstall ports ==== #automatic 63 55 64 A script has been written to automate Step 4 above more accurately, though it has some caveats. If it fails, you will just have to do it manually. (But see workaround for conflicting ports below.)56 A script has been written to automate Step 4 above, though it has some caveats. If it fails, you will just have to do it manually. (But see workaround for conflicting ports below.) 65 57 66 58 To use it, you will first need to run steps 1-3 as described above. Then: … … 69 61 curl -O https://svn.macports.org/repository/macports/contrib/restore_ports/restore_ports.tcl 70 62 chmod +x restore_ports.tcl 71 sudo ./restore_ports.tcl my _installed_ports.txt63 sudo ./restore_ports.tcl myports.txt 72 64 }}} 73 65