title: How to do update-alternatives --config without having an interactive prompt?
body: <p>So I'm trying to run these commands in the Github Actions environment:</p>
  <p><code>sudo update-alternatives --config x86_64-w64-mingw32-gcc</code></p>
  <p><code>sudo update-alternatives --config x86_64-w64-mingw32-g++</code></p>
  <p>to change the threading model to POSIX, but it brings up the following prompt:</p>
  <pre><code>There are 2 choices for the alternative x86_64-w64-mingw32-gcc (providing /usr/bin/x86_64-w64-mingw32-gcc).
  
    Selection    Path                                   Priority   Status
  ------------------------------------------------------------
  * 0            /usr/bin/x86_64-w64-mingw32-gcc-win32   60        auto mode
    1            /usr/bin/x86_64-w64-mingw32-gcc-posix   30        manual mode
    2            /usr/bin/x86_64-w64-mingw32-gcc-win32   60        manual mode
  </code></pre>
  <p>How do I answer this without having access to the shell? I have tried giving 1 as a command (didn't work), and these:</p>
  <p><code>echo &quot;1&quot; &gt; sudo update-alternatives --config x86_64-w64-mingw32-gcc</code></p>
  <p><code>echo &quot;1&quot; &gt; sudo update-alternatives --config x86_64-w64-mingw32-g++</code></p>
  <p>But after I use <code>sudo update-alternatives --config x86_64-w64-mingw32-gcc</code> and <code>sudo update-alternatives --config x86_64-w64-mingw32-g++</code> to check, the prompt still shows the selection being at 0. (If you change the alternatives manually, it should remember your choice)</p>
  <p>What do I do? Any help is appreciated.</p>