Skip to main content

Module linux

Module linux 

Source
Expand description

Installs and removals on Linux: one root script each (RootScript), run as root as the Elevation says, through apt and the vendors’ apt repositories or dnf and the vendors’ rpm repositories (scripts).

Modules§

scripts
The root scripts behind the installs on Linux: the vendors’ apt and rpm repositories, and the distributions’ own packages. Every repository’s signing key is checked against its fingerprint, pinned here, before apt or dnf trusts it; no vendor install script runs as root.

Structs§

Root
How root steps run here: elevated as elevation says, with the proxy variables proxy (NAME=value, proxy_assignments).

Constants§

PROXY_VARS
The proxy variables a root step is handed: apt and curl need them behind a corporate proxy, and pkexec clears the environment.

Functions§

install
The install of dep on Linux on a CPU arch, as root, for the user user (joined to the groups a tool’s devices need): apt and the vendors’ apt repositories, or dnf and the vendors’ rpm repositories. A tool its vendor ships no build of for arch is refused (Dependency::no_build), before the package manager is looked at.
proxy_assignments
The proxy variables var reads that are set, as NAME=value (what a root step is handed).
uninstall
The removal on Linux, as root, of what added lists of dep (Item, as an install’s record has it), and of nothing else: those of its packages (super::added::packages: a name on record that isn’t one of them is never removed) through the package manager that installed them (a tool installed through dnf removed with apt-get remove failed with apt-get: not found); the AWS CLI’s folder when the install added it. The package manager would take away with them every package that needs one of them, whoever installed it: the removal stops, removing nothing, when it would (removal_script).