package-assistant

Crates.iopackage-assistant
lib.rspackage-assistant
version0.10.0
sourcesrc
created_at2024-11-12 16:20:08.668662
updated_at2024-11-26 13:36:20.272898
descriptionPackage Assistant helps you manage your package managers.
homepagehttps://github.com/patryk-s/package-assistant
repositoryhttps://github.com/patryk-s/package-assistant
max_upload_size
id1445123
size47,920
(patryk-s)

documentation

README

Package Assistant

Package Assistant provides a consistent CLI interface for all supported package managers, across multiple OSes, so you don't have to remember the specific syntax on a given system. Additionally, it helps you manage several package managers on a single system (for example, apt and snap on Ubuntu).

Configure which package managers you want to use and pick a main (default) package manager (run pa config to choose). You can then use pa to run your usual package commands, for example:

pa search foo
pa info foo
pa install foo

If you want to run a command with all configured package managers, just add -a:

pa search -a foo
pa update -a
pa upgrade -a

You can also run a command with a specific manager:

pa install -m snap foo

Run pa help for the full usage:

Usage: pa [OPTIONS] <COMMAND>

Commands:
  config     Create or update configuration
  info       Show package details
  install    Install packages
  list       List installed packages
  search     Search for package
  managers   List available package managers
  uninstall  Uninstall packages
  update     Update package database
  upgrade    Upgrade installed packages
  version    Show package manager version
  help       Print this message or the help of the given subcommand(s)

Options:
  -a, --all-managers       Apply command to all configured package managers
  -m, --manager <MANAGER>  Run command with secified package manager
  -h, --help               Print help
  -V, --version            Print version

Supported package managers

Installation

Cargo

If you have rustc and cargo installed (if not, see rustup.rs)
you can build and install from crates.io, just run:

cargo install package-assistant

Or clone this repo, cd into it, and run:

cargo install --path .
Commit count: 26

cargo fmt