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

Re: apt 2.0 release notes



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.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature


Reply to: