From 9244f712396c10b674740cc79fdab61c47173d04 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 9 May 2019 22:23:17 +0200 Subject: Introduce apt satisfy and apt-get satisfy Allow to satisfy dependency strings supplied on the command line, optionally prefixed with "Conflicts:" to satisfy them like Conflicts. Build profiles and architecture restriction lists, as used in build dependencies, are supported as well. Compared to build-dep, build-essential is not installed automatically, and installing of recommended packages follows the global default, which defaults to yes. Closes: #275379 See merge request apt-team/apt!63 --- doc/apt-get.8.xml | 13 +++++++++++++ doc/apt.8.xml | 9 +++++++++ doc/examples/configure-index | 1 + 3 files changed, 23 insertions(+) (limited to 'doc') diff --git a/doc/apt-get.8.xml b/doc/apt-get.8.xml index b757c3d30..fca682015 100644 --- a/doc/apt-get.8.xml +++ b/doc/apt-get.8.xml @@ -205,6 +205,19 @@ option if you want to change that. + + satisfy causes apt-get to satisfy the given dependency string.s The + dependency strings may have build profiles and architecture restriction list as in build dependencies. They + may optionally be prefixed with "Conflicts: " to unsatisfy the dependency string. Multiple strings of the same type can be specified. + + Example: apt-get satisfy "foo" "Conflicts: bar" "baz (>> 1.0) | bar (= 2.0), moo" + + The legacy operator '</>' is not supported, use '<=/>=' instead. + + + + + check is a diagnostic tool; it updates the package cache and checks for broken dependencies. diff --git a/doc/apt.8.xml b/doc/apt.8.xml index e43ad9e9e..0c822b4ef 100644 --- a/doc/apt.8.xml +++ b/doc/apt.8.xml @@ -109,6 +109,15 @@ + (&apt-get;) + satisfies dependency strings, as + used in Build-Depends. It also handles conflicts, by prefixing an argument + with "Conflicts: ". + Example: apt satisfy "foo, bar (>= 1.0)" "Conflicts: baz, fuzz" + + + + (&apt-cache;) can be used to search for the given ®ex; term(s) in the list of available packages and display diff --git a/doc/examples/configure-index b/doc/examples/configure-index index 5e317d7e0..25378a809 100644 --- a/doc/examples/configure-index +++ b/doc/examples/configure-index @@ -63,6 +63,7 @@ APT Arch-Only ""; Indep-Only ""; Build-Dep-Automatic ""; + Satisfy-Automatic ""; // (non-)confirming options Force-Yes ""; // allows downgrades, essential removal and eats children -- cgit v1.2.3