S0raWasTaken / pacw

Pacman wrapper and utility tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PACW

A pacman wrapper and utility tool for simplicity and usability
Made in rust :)

Build instructions:

Get rust via AUR:

Alternatively you could download it from here

paru -S rustup # Using an AUR helper is optional

Clone this repository:

git clone https://github.com/S0raWasTaken/pacw.git && cd pacw

Build the release binaries:

cargo build --release

Install the recent built binary to a bin folder:

Alternatively you could place it on a random folder and update $PATH to include it

sudo mv target/release/pacw /usr/local/bin/pacw
sudo chmod +x /usr/local/bin/pacw

Usage:

[] OPTIONAL, <> REQUIRED

Installing stuff

pacw [install or i] <package> # -> same as "pacman -S"

Installing, updating and upgrading

pacw [upgrade or u] [package] # -> same as "pacman -Syu"

Printing package info

pacw [show or info] <package> # -> same as "pacman -Si"

Showing orphan packages

pacw orphans # -> same as "pacman -Qqdt"

Removing packages

pacw [remove or r] <package> # -> same as "pacman -Rs"

Searching packages (not an AUR helper)

pacw search <package> # -> same as "pacman -Ss"

Using macros

Examples:

pacw remove @orphans [additional packages] # -> same as "pacman -Rs $(pacman -Qqdt)"
pacw install @optdeps <packages> # -> Will install packages with its optional dependencies

TODO:

  • Add support to doas (sudo alternative)
  • Check package existence before calling the final command

About

Pacman wrapper and utility tool

License:MIT License


Languages

Language:Rust 100.0%