[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt 2.0 release notes



On 08.03.20 19:10, Jonas Smedegaard wrote:
> Quoting Matthias Klose (2020-03-08 18:40:34)
>> On 3/7/20 9:41 PM, Julian Andres Klode wrote:
>>> # APT 2.0
>>>
>>> After brewing in experimental for a while, and getting a first outing in
>>> the Ubuntu 19.10 release; both as 1.9, APT 2.0 is now landing in unstable.
>>> 1.10 would be a boring, weird number, eh?
>>>
>>> Compared to the 1.8 series, the APT 2.0 series features several new features,
>>> as well as improvements in performance, hardening. A lot of code has been
>>> removed as well, reducing the size of the library.
>>
>> $ apt show <somepackage> >/dev/null | cat
>>
>> WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
>>
>> Is there a roadmap when the CLI interface will become stable?
> 
> I would not expect apt to ever get a stable interface for scripting.
> 
> "man apt" says this in first paragraph of section DESCRIPTION:
> 
>> apt provides a high-level commandline interface for the package 
>> management system. It is intended as an end user interface and enables 
>> some options better suited for interactive usage by default compared 
>> to more specialized APT tools like apt-get(8) and apt-cache(8).
> 
> I.e. for scripting, use apt-get instead.

If that last paragraph wants to say "use apt-get for scripting" then it
should say it clearly and explicitly and not leave it up to sufficiently
astute interpretation skills of the reader...
*t


Reply to: