[go: up one dir, main page]

Skip to content

A pacman wrapper that provides intuitive syntax similar to dnf, apt, zypper, etc.

License

Notifications You must be signed in to change notification settings

eatsu/pac-wrapper

Repository files navigation

Pac

AUR package

Pac is a pacman wrapper that provides intuitive syntax similar to dnf, apt, zypper, etc.

With pac you don't need to memorize the non-intuitive options like -Rs, -Si, -Ss; you can just type remove, info, search, respectively.

Pac also supports Tab completion for Bash and Zsh.

Note: Pac itself is not an AUR helper, though it can wrap an AUR helper that supports pacman's options. See Configuration.

Installation

The pac-wrapper package is available in AUR.

To install from source, run make install.

Examples

Command Description
pac Upgrade installed packages.
pac in foo
pac install foo
Install package foo and its dependencies.
pac rm foo
pac remove foo
Remove package foo and its dependencies.
pac if foo
pac info foo
Show information about package or group foo.
pac se foo
pac search foo
Search package names and descriptions with keyword foo.
pac mark -d foo
pac mark --asdeps foo
Mark package foo as dependencies.
pac arm
pac autoremove
Remove dependencies that are no longer required by any installed package.
pac ls -ef
pac list --explicit --foreign
List explicitly installed foreign packages (e.g. AUR packages).

Run pac --help for more information.

Configuration

By default, pac wraps pacman. To wrap another pacman-compatible program, set the environment variable PAC_PACMAN.

For example, to wrap paru instead of pacman, add

export PAC_PACMAN='paru'

to your ~/.bash_profile (or $ZDOTDIR/.zshenv for Zsh) and reload your shell.

License

MIT