Release of Package Manager APT 2.0

Prepared Release of the package management tool APT 2.0 (Advanced Package Tool), developed by the Debian project. In addition to Debian and its derivatives, APT is also used in some distributions based on the RPM package manager, such as PCLinuxOS and ALT Linux. The new branch incorporates changes accumulated during the development of the experimental branch 1.9.x. A new release is expected soon. integrated into the Debian Unstable branch and the package repository Ubuntu (an experimental branch 1.9 was used in Ubuntu 19.10).

From the changes notable mentions include:

  • In commands that accept package names, support has been added. templates. The template syntax mainly follows the style of aptitude templates. Support for masks and regular expressions in apt command arguments has been discontinued; instead, templates should now be used. For example, to output a list of all manually installed packages from sections containing the words libs, perl, and python:

    apt list ‘~i !~M (~slibs|~sperl|~spython)’

  • Commands "apt satisfy" and "apt-get satisfy" have been added, allowing the installation of packages required to meet dependencies specified in the string passed as an argument. Multiple strings can be listed, and "Conflicts:" blocks can be used to exclude dependencies. For example:

    apt-get satisfy "foo" "Conflicts: bar" "baz (>> 1.0) | bar (= 2.0), moo"

  • The ability to pin a package by its source code is introduced by adding the prefix "src:" before the package name (pinning, allows adding packages from other branches without updating the entire system, for instance, installing packages from testing or unstable into stable). To pin all binary packages built from source package apt 2.0.0, one can use:

    Package: src:apt
    Pin: version 2.0.0
    Pin-Priority: 990

  • The apt command now ensures that it waits for the dpkg lock to be released. By default, when launched from the console, the wait is indefinite; in other cases, the timeout is set to 120 seconds.
  • If apt fails to acquire the lock, the error message now displays the name and pid of the process holding the lock file.
  • New commands merge-translations and bump-abi have been added.
  • For cryptographic hashing, implementations of MD5, SHA1, and SHA2 from the libgcrypt library are utilized.
  • The parallel execution of handlers has been enhanced. rred and unpacking during the update command execution.
  • Accounts listed in the auth.conf file are now only passed when accessed over HTTPS to prevent leakage in case of HTTP connection interception.
  • The requirement for the C++ standard has been raised to C++14.
  • Support for specifying multiple hashes for a single file has been added to apt-helper.
  • The merger of the libapt-inst library with libapt-pkg has been completed.
  • The cache format has been upgraded, now allowing new entries to be added without breaking the ABI. Pointers in the cache are now statically typed and cannot be compared to integers (except for 0 via nullptr).
  • Outdated flags have been removed, and various function prototypes have been merged. Custom implementations of CRC16, MD5, SHA1, and SHA2 algorithms have been deleted.

Source: opennet.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster