Simple APT helper

Forum Forums General Tips and Tricks Simple APT helper

  • This topic has 5 replies, 3 voices, and was last updated Apr 3-5:09 am by RJP.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #138217
    Member
    RJP

      Not good, but working somehow.

      #138223
      Member
      PPC

        It’s a good idea… and you can learn a lot creating such a tool.
        The main “problem” is that you are basically trying to replicate the functionality already available in Package Installer and Synaptic… You could think of some missing feature in antiX and try to create a GUI for it! That way, your work could eventually end up integrated into antiX. Also: the fact that users can end up with so many open windows is confusing.

        Edit: there are at least 2 typos:
        “apt list –upgradeable > /tmp/aptlist”
        “falsey

        P.

        • This reply was modified 3 months, 3 weeks ago by PPC.
        #138229
        Member
        RJP

          @PPC You have a hawk eye. Thanks! Corrected file as an attacment.

          Attachments:
          #138236
          Member
          stevesr0

            Hi RJP,

            In my Sid antiX install, I routinely run
            apt install -s
            to detect unexpected systemd component installs (like elogind or libelogind0) or removals (not uncommon with the install of t64 replacement packages).

            Your script as is doesn’t seem to provide this, unless I am missing something?

            #138239
            Member
            RJP

              Hi RJP,

              In my Sid antiX install, I routinely run
              apt install -s
              to detect unexpected systemd component installs (like elogind or libelogind0) or removals (not uncommon with the install of t64 replacement packages).

              Your script as is doesn’t seem to provide this, unless I am missing something?

              If that bothers you, you can edit the script as you want. In my antiX 23 runit apt install -s prints:

              $ apt install -s
              NOTE: This is only a simulation!
                    apt needs root privileges for real execution.
                    Keep also in mind that locking is deactivated,
                    so don't depend on the relevance to the real current situation!
              Luetaan pakettiluetteloita... Valmis
              Muodostetaan riippuvuussuhteiden puu... Valmis
              Luetaan tilatiedot... Valmis                  
              0 päivitetty, 0 uutta asennusta, 0 poistettavaa ja 0 päivittämätöntä.

              #####################

              Edit: antiX does not re-fresh apt-cache automatically, so it must do by hand (sudo apt update), or via script or root crontab.
              Update Notifier

              • This reply was modified 3 months, 3 weeks ago by RJP.
              #138474
              Member
              RJP

                Some improvements and new features.

                Edit: A little change to the update line.

                x-terminal-emulator -e /bin/bash -c "sudo apt update && sudo apt upgrade && sudo apt-get -fy install && sleep 3"

                • This reply was modified 3 months, 2 weeks ago by RJP.
              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.