[MacPorts] Migration modified

MacPorts noreply at macports.org
Mon Feb 12 03:02:06 UTC 2018


Page "Migration" was changed by rpspringuel
Diff URL: <https://trac.macports.org/wiki/Migration?action=diff&version=106>
Revision 106
Comment: Mention Migration Assistant and make it the first step when upgrading computers
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: Migration
=========================================================================
--- Migration (version: 105)
+++ Migration (version: 106)
@@ -6,19 +6,25 @@
 - major operating system upgrades (e.g., from 10.9 Mavericks to 10.10
   Yosemite).
 - architecture migrations (e.g., from PowerPC to Intel).
+- migrations from one computer to another
 Please follow this procedure to ensure a smooth transition. (This isn't
 necessary if you only upgrade Xcode.)
 
 == Migration procedure ==
 
-1. [=#xcode **Install the latest version of Xcode and the Xcode command line tools**]
+1. [=#assistant **Migration Assistant**]
+
+   If you are going to use the Migration Assistant to copy files and/or settings from an old computer to a new one, do so now.
+
+
+2. [=#xcode **Install the latest version of Xcode and the Xcode command line tools**]
 
    After a major system change, update the development tools by
    [https://guide.macports.org/#installing.xcode installing the latest version of Xcode].
    Open the Xcode application once after installation and follow any prompts.
    Install the command line tools package as well (run `xcode-select --install`).
 
-2. [=#base **Reinstall MacPorts base**]
+3. [=#base **Reinstall MacPorts base**]
 
    After updating the development tools,
    [https://www.macports.org/install.php install the base MacPorts system]
@@ -27,7 +33,7 @@
 
    **Update macports.conf**: If your {{{macports.conf}}} (typically at {{{ /opt/local/etc/macports/macports.conf}}}) contains uncommented settings for {{{universal_archs}}} or {{{build_arch}}}, you will likely want to update them, since unlike earlier OS versions, the compiler on Snow Leopard and later will build for x86_64 by default on systems that support it. The default values will be fine for almost all users, so unless you know you need something different, just comment out these two lines. 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 in your settings file should be different from the defaults, adopt the line from the defaults file.
 
-3. [=#ports **Reinstall ports**]
+4. [=#ports **Reinstall ports**]
    a. Save the list of installed ports:
       {{{
       port -qv installed > myports.txt
@@ -70,6 +76,8 @@
 }}}
 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`. You may skip explicitly installing ports that you did not request as long as they are not using non-default variants, since they will be installed as dependencies of other ports.
 
+If things go really wrong, don't forget that you can always [https://guide.macports.org/chunked/installing.macports.uninstalling.html uninstall MacPorts] entirely before manually reinstalling ports.
+
 Another potential problem is that the `restore_ports.tcl` command may fail with a `Too many open files` error message. Under macOS Sierra, the default shell has a default `ulimit` of 256 open files. The solution is to restore the ports with a slightly modified command:
 {{{
 sudo bash -c "ulimit -n 4096; ./restore_ports.tcl myports.txt"
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/Migration>
MacPorts <https://www.macports.org/>
Ports system for macOS

This is an automated message. Someone added your email address to be
notified of changes on 'Migration' page.
If it was not you, please report to admin at macports.org.


More information about the macports-changes mailing list