pub struct Preferences {
pub strict_pinning: Bool<true>,
pub forbid_new_install: Bool,
pub forbid_remove: Bool,
pub solver: Option<String>,
pub preferences: Option<String>,
}
Expand description
Encapsulates the preference fields in a Request
stanza.
Fields§
§strict_pinning: Bool<true>
When set to Bool::YES
, APT pinning is strict, i.e. the solver must not propose to
install packages which are not APT candidates1. When set to Bool::NO
, the solver
does only a best effort attempt to install APT candidates. Defaults to Bool::YES
.
See
Package::pin
andPackage::candidate
. ↩
forbid_new_install: Bool
When set to Bool::YES
the resolver is forbidden to install new packages in its
returned solution. Defaults to Bool::NO
.
forbid_remove: Bool
When set to Bool::YES
the resolver is forbidden to remove currently installed
packages in its returned solution. Defaults to Bool::NO
.
solver: Option<String>
A purely informational string specifying the solver to which this request was initially sent.
preferences: Option<String>
A solver-specific preferences string, usually coming from the APT::Solver::Preferences
APT configuration option.