Possible change to antiX updater

Forum Forums antiX-development Development Possible change to antiX updater

  • This topic has 32 replies, 9 voices, and was last updated Mar 28-12:37 pm by Brian Masinick.
Viewing 3 posts - 31 through 33 (of 33 total)
  • Author
    Posts
  • #102008
    Member
    PPC
      Helpful
      Up
      0
      ::

      I use antiX-updater myself and I noticed that in my work desktop PC, it now always report that there’s one update, when none is available. I’ll try to change the script to avoid that from happening (never happened before). While I’m at it, I’ll checkout how easy it would be to also present a box with all packages that can be updated…

      Edit: this happens because, apt list –upgradable does not come up empty, but it reports:

      Listing... Pronto
      libvlccore9/bullseye 3.0.18-2.0nosystemd1 amd64 [upgradable from: 3.0.18-0+deb11u1.0nosystemd2]
      N: There are 2 additional versions. Please use the '-a' switch to see them.

      P.

      • This reply was modified 1 month, 2 weeks ago by PPC.
      #103404
      Member
      Robin
        Helpful
        Up
        0
        ::

        Hello PPC,
        Another suggestion to make the script more reliable on long term:
        The apt command is not meant for scripting and should be replaced by something like apt-get or apt-cache or dpkg-query within scripts.
        Your yad-updater script throws constant warnings:

        WARNING: apt does not have a stable CLI interface.
        Use with caution in scripts.
        
        23 /tmp/list_of_upgradable_packages.txt
        
        WARNING: apt does not have a stable CLI interface.
        Use with caution in scripts.

        it now always report that there’s one update, when none is available. … (never happened before)

        You will face constant issues like that, since they constantly change something in its output. Precisely this is what the warning is about.

        Many greetings
        Robin

        Windows is like a submarine. Open a window and serious problems will start.

        #103428
        Moderator
        Brian Masinick
          Helpful
          Up
          0
          ::

          Great suggestion Robin!
          Apt is a simplified interface.
          apt-get is the main package installation tool and dpkg provides the foundation for all of the packaging programs.

          As you also note, apt-cache search is the mature command search tool and dpkg-query is the fundamental tool.

          I agree with your recommendation.

          --
          Brian Masinick

        Viewing 3 posts - 31 through 33 (of 33 total)
        • You must be logged in to reply to this topic.