<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div dir="ltr">
      <div>Currently, the <a
          href="https://trac.macports.org/wiki/Migration#ports"
          target="_blank" moz-do-not-send="true">Migration</a> guide on
        the wiki denotes a 6-step process to restore ports after an
        upgrade, one of which requires the user to download a script
        that hasn't worked properly for a few years now (doesn't restore
        variants and ignore platform and arch). I propose a much simpler
        instruction like so:<br>
        <br>
        <ol
style="color:rgb(0,0,0);font-family:Verdana,Arial,"Bitstream Vera Sans",Helvetica,sans-serif;font-size:13px"
          start="3">
          <li><span id="m_8593151885569605712gmail-ports"
              style="background:rgb(255,255,187);border-radius:0.2em"><strong>Reinstall
                your ports</strong></span>
            <ol style="list-style-type:lower-alpha">
              <li>Save the list of installed ports:
                <pre
style="background:rgb(247,247,247);border:1px solid rgb(215,215,215);border-radius:0.3em;margin:1em 1.75em;padding:0.25em;overflow:auto">port echo requested | sed -E s/@[^\+]+//g > requested.txt</pre>
              </li>
              <li>Uninstall all installed ports:
                <pre
style="background:rgb(247,247,247);border:1px solid rgb(215,215,215);border-radius:0.3em;margin:1em 1.75em;padding:0.25em;overflow:auto">sudo port -f uninstall installed
</pre>
              </li>
              <li>Run a regular clear out of your installation:
                <pre
style="background:rgb(247,247,247);border:1px solid rgb(215,215,215);border-radius:0.3em;margin:1em 1.75em;padding:0.25em;overflow:auto">sudo port reclaim</pre>
              </li>
              <li>Restore requested ports:
                <pre
style="background:rgb(247,247,247);border:1px solid rgb(215,215,215);border-radius:0.3em;margin:1em 1.75em;padding:0.25em;overflow:auto">sudo bash -c 'cat requested.txt | xargs port -v install'</pre>
              </li>
            </ol>
          </li>
        </ol>
      </div>
      <div>This is much simpler, no need for notes or warnings or
        editing the text files.<br>
        <br>
      </div>
      <br clear="all">
      <div>
        <div dir="ltr" class="gmail_signature"
          data-smartmail="gmail_signature">
          <div dir="ltr">Jimmy Yuen Ho Wong</div>
        </div>
      </div>
    </div>
  </body>
</html>