Changes between Version 61 and Version 62 of Migration
- Timestamp:
- Oct 31, 2013, 12:16:59 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Migration
v61 v62 18 18 ==== OS X 10.9 Mavericks ==== 19 19 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 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 }}} 22 25 === Reinstall MacPorts === 23 26 … … 30 33 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. 31 34 35 {{{ 36 cp /opt/local/etc/macports/macports.conf.default /opt/local/etc/macports/macports.conf 37 }}} 38 39 32 40 === Reinstall ports === #ports 33 41 … … 36 44 1. Save the list of installed ports: 37 45 {{{ 38 port -qv installed > myports.txt 46 port -qv installed > my_installed_ports.txt 47 port list requested | perl -pe 's/ .*//g' | sort -u > my_requested_ports.txt 39 48 }}} 40 49 2. Uninstall all installed ports: … … 46 55 sudo port clean all 47 56 }}} 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:57 4. Install your old ports: 49 58 {{{ 50 sudo port install portname +variant1 +variant2 …59 sudo port install $(cat my_requested_ports.txt | perl -pe 's/\n/ /g') 51 60 }}} 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`.53 61 54 62 ==== Automatically reinstall ports ==== #automatic 55 63 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.)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.) 57 65 58 66 To use it, you will first need to run steps 1-3 as described above. Then: … … 61 69 curl -O https://svn.macports.org/repository/macports/contrib/restore_ports/restore_ports.tcl 62 70 chmod +x restore_ports.tcl 63 sudo ./restore_ports.tcl my ports.txt71 sudo ./restore_ports.tcl my_installed_ports.txt 64 72 }}} 65 73