Expand description
Mapping from pacman commands to various operations of specific package
managers.
Re-exportsยง
use std::env;๐use std::env;๐use async_trait::async_trait;๐use itertools::Itertools;๐pub use self::imp::Pm;use self::apk::Apk;๐use self::apt::Apt;๐use self::brew::Brew;๐use self::choco::Choco;๐use self::conda::Conda;๐use self::dnf::Dnf;๐use self::emerge::Emerge;๐use self::pip::Pip;๐use self::pkcon::Pkcon;๐use self::port::Port;๐use self::scoop::Scoop;๐use self::tlmgr::Tlmgr;๐use self::unknown::Unknown;๐use self::winget::Winget;๐use self::xbps::Xbps;๐use self::zypper::Zypper;๐use crate::config::Config;๐use crate::error::Result;๐use crate::exec;๐use crate::exec::Cmd;๐use crate::exec::Mode;๐use crate::exec::Output;๐use crate::exec::is_exe;๐use crate::print::println_quoted;๐use crate::print::prompt;๐
Modulesยง
- apk ๐
- The Alpine Linux package management system.
- apt ๐
- The Advanced Package Tool.
- brew ๐
- The Homebrew Package Manager.
- choco ๐
- The Chocolatey Package Manager.
- conda ๐
- The Conda Package Manager.
- dnf ๐
- The Dandified YUM.
- emerge ๐
- The Portage Package Manager.
- imp ๐
- pip ๐
- The Python Package Installer.
- pkcon ๐
- The PackageKit Console Client.
- port ๐
- The MacPorts Package Manager.
- scoop ๐
- The Scoop CLI Installer.
- tests
- tlmgr ๐
- The TexLive Package Manager.
- unknown ๐
- An empty mapping for unidentified package managers.
- winget ๐
- The Windows Package Manager CLI.
- xbps ๐
- The X Binary Package System.
- zypper ๐
- The Zypper Package Manager.
Structsยง
- Strategy
- A set of intrinsic properties of a command in the context of a specific package manager, indicating how it is run.
Enumsยง
- DryRun
Strategy - How a dry run is dealt with.
- NoCache
Strategy - How the cache is cleaned when
no_cacheis set totrue. - PmMode
- Different ways in which a command shall be dealt with.
- Prompt
Strategy - How the prompt is dealt with when running the package manager.
Traitsยง
- PmHelper
- Extra implementation helper functions for
Pm, focusing on the ability to run commands (Cmds) in a configured andPm-specific context.
Functionsยง
- detect_
pm_ ๐str - Detects the name of the package manager to be used in auto dispatch.