This repository has been archived on 2020-09-21. You can view files and clone it, but cannot push or open issues or pull requests.
zim/modules/pacman
Matt Hamilton 01838f0083 add compdef for pacman aliases
The recommended order for the module loading has been changed. The last
module to be loaded should be 'completion'. This ensures all completions
set by other modules are dumped and included in the completion.
Because of this, any compdefs like this one (making the pacman aliases
use pacman completion) must be set in the compdefs.zsh file, and loaded
with the completion module. This means the compdefs must be wrapped with
conditional statements to ensure such aliases/functions have been set by
previous modules. I may abstract this conditional to a function in the
future to make this an easier process.
2015-12-17 03:06:12 -05:00
..
alias.zsh add compdef for pacman aliases 2015-12-17 03:06:12 -05:00
helper_aur.zsh initial commit 2015-12-15 00:12:17 -05:00
init.zsh fix typo, thanks Mikachu 2015-12-16 00:35:12 -05:00
README.md add pacman documentation 2015-12-15 03:00:26 -05:00

Pacman

Adds aliases for the pacman package manager.

Also includes optional helper(s).

.zimrc Configuration

  • zpacman_frontend='helper_here' Set helper_here to a wrapper if applicable (powerpill, pacmatic, etc).
  • zpacman_helper=(aur) add/remove any helper scripts to be loaded here.

Helpers

aur

provides simple AUR helper aliases.

  • aurb package_name clone the package from the AUR, build, and install.
  • aurd package_name clone the package from the AUR, but do not build.
  • auru run inside a directory created with aurb, this will update, build, and install a package.

Aliases

Build

  • pacb build package in the current directory, cleanup, and install.

Install

  • paci install, sync, and upgrade packages.
  • pacu install, sync, and upgrade packages (forcibly refresh package list).
  • pacU install packages from pkg file.
  • pacd install all packages in current directory.

Remove

  • pacr remove package and unneeded dependencies.
  • pacrm remove package, unneded dependencies, and configuration files.

Query

  • pacq query package information from remote repository
  • pacQ query package information from local repository
  • pacs search for package in the remote repository
  • pacS search for package in the local repository

Orphans

  • pacol list orphan packages
  • pacor remove all orphan packages