Skip to main content

install

Function install 

Source
pub fn install(
    dep: Dependency,
    packages: Option<Packages>,
    arch: Arch,
    user: Option<&str>,
    root: &Root,
) -> Result<Vec<Step>, Refusal>
Expand description

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.

§Errors

Refusal: why it can’t be installed here.