pub struct Actions {
pub dist_upgrade: Bool,
pub upgrade: Bool,
pub autoremove: Bool,
pub upgrade_all: Bool,
pub remove: Option<String>,
pub install: Option<String>,
}
Expand description
Encapsulates the action fields in a Request
stanza.
Fields§
§dist_upgrade: Bool
(deprecated) Set to Bool::YES
in an APT dist-upgrade
request. Defaults to
Bool::NO
.
Equivalent to setting Actions::upgrade_all
to Bool::YES
, and
Preferences::forbid_new_install
and Preferences::forbid_remove
to Bool::NO
.
upgrade: Bool
(deprecated) Set to Bool::YES
in an APT upgrade
request. Defaults to Bool::NO
.
Equivalent to setting Actions::upgrade_all
, Preferences::forbid_new_install
and
Preferences::forbid_remove
to Bool::YES
.
autoremove: Bool
If set to Bool::YES
, a cleanup of unused automatically installed packages has been
requested, usually via an APT autoremove
request. Defaults to Bool::NO
.
upgrade_all: Bool
If set to Bool::YES
, an upgrade of all installed packages has been requested,
usually via an upgrade command like apt full-upgrade
. Defaults to Bool::NO
.
remove: Option<String>
A space-separated list of arch-qualified package names, with no version attached, to
remove. A value of None
denotes an empty list.
install: Option<String>
A space-separated list of arch-qualified package names, with no version attached, to
install. A value of None
denotes an empty list.