<html data-lt-installed="true">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body style="padding-bottom: 1px;">
    <div class="lRu31"><span class="HwtZe" lang="en"><span class="jCAhz
          ChMk0b"><span class="ryNqvb">A terminal-based variant of </span></span></span><span
        class="HwtZe" lang="en"><span class="jCAhz ChMk0b"><span
            class="ryNqvb"><span class="HwtZe" lang="en"><span
                class="jCAhz ChMk0b"><span class="ryNqvb">update-manager
                </span></span></span>would be particularly useful for
            Ubuntu Server, as it does not use a desktop environment by
            default as required by update-manager (the "graphical
            management of software packages updates").</span></span></span><span
        class="ZSCsVd"></span></div>
    <p></p>
    <div class="moz-cite-prefix">On 2023-05-19 03:12, David Hedlund
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:a82d09db-f14b-4cb0-f124-6063ddb6b177@beloved.name">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p><br>
      </p>
      <div class="moz-cite-prefix">On 2023-05-19 02:06, David Hedlund
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:4d1153f2-673e-8d5b-3966-84ef1c93653f@beloved.name">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <p>I expect that there are some useful terminal packages or
          script that are performing the same thing as the
          update-manager GUI. If you are aware of any such solution,
          please give me the name of the software.<br>
        </p>
        <p><br>
        </p>
        <p>If not, then it would be useful to make a clone of
          update-manager that could be either part of, or packaged, for
          Ubuntu. Just to try it out, I wrote a bash script (just
          execute it, and run the alias `u` to try it), see the attached
          file. However, I'm not satisfied with it, because it's not yet
          a full-feathered <i>clone</i> of update-manager:</p>
        <p><br>
        </p>
        <p> Which commands are executed when:</p>
      </blockquote>
      <p>I just submitted: Feature request: List executed commands in
        "Details" - <a class="moz-txt-link-freetext"
href="https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/2020140"
          moz-do-not-send="true">https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/2020140</a></p>
      <p>But it does not solve the main issue of the subject of this
        mail.<br>
      </p>
      <blockquote type="cite"
        cite="mid:4d1153f2-673e-8d5b-3966-84ef1c93653f@beloved.name">
        <p>* update-manager is opened:</p>
        <p>    * I'm confident that this is the first executed command:
          sudo apt-get -y update</p>
        <p>    * Then packages are listed, exactly which command is
          executed to figure this out?<br>
        </p>
        <p>* The "Install Now" button is clicked on. Examples, which of
          these commands are executed, and in which order (please quote
          with source code and file names as references)?:<br>
        </p>
        <p>apt-get upgrade</p>
        <p>apt-get dist-upgrade</p>
        <p>apt autoremove</p>
        <p>apt clean</p>
        <p>apt full-upgrade<br>
        </p>
        <p>Is something else executed?<br>
        </p>
        <p><br>
        </p>
        * /var/run/reboot-required is used to determine if the GUI
        should display a button used to restart the distro<br>
        <p>UpdateManager.py[1]<br>
        </p>
        <p>----------->8--------------<br>
        </p>
        <p># file that signals if we need to reboot<br>
          REBOOT_REQUIRED_FILE = "/var/run/reboot-required"<br>
        </p>
        <p>----------->8--------------<br>
        </p>
        <p>1: git clone
          git://git.launchpad.net/ubuntu/+source/update-manager
          && grep -r "reboot-required" .<br>
        </p>
        <p><br>
        </p>
        <lt-container></lt-container> <br>
        <fieldset class="moz-mime-attachment-header"></fieldset>
      </blockquote>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
    </blockquote>
  </body>
</html>