Forum for users of antiX Linux. Mean and Lean and Proudly anti-fascist.
Forum › Forums › antiX-development › Development › Possible change to antiX updater
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.
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.
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
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |