Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Usage

paku takes the same operations and options as MSYS2 pacman. Run paku -h for help and paku -S -h for the options of one operation.

Example: install rsync

Install rsync, which Git Bash lacks:

paku -Sy                # download the package databases
paku -Ss '^rsync$'      # search by exact name; `paku -Ss rsync` also matches descriptions
msys/rsync 3.5.2-1 (net-utils)
    A file transfer program to keep remote files in sync

msys/ is the repository. If nothing matches, -Ss prints nothing and exits with code 1.

paku -Si rsync          # package details
paku -S rsync           # install it and its missing dependencies

Common commands

CommandWhat it does
paku -Sydownload the package databases
paku -Ss <text>search package names and descriptions
paku -Si <pkg>show package details
paku -Sllist packages in the repositories
paku -Sglist package groups
paku -S <pkg>install a package and its missing dependencies
paku -Syuupgrade all packages installed with paku
paku -Qlist packages installed with paku
paku -Rs <pkg>remove a package and the dependencies nothing else needs
paku -T <dep>check whether dependencies are satisfied

Combined short flags work as in pacman (-Syu, -Qqe, -Rns), and - reads targets from stdin.

When MSYS2 renames or merges a package, paku -Syu asks Replace <old> with <repo>/<new>? and, on yes, removes the old package and installs the new one, like pacman.

Package names

RepositoryHost CPUPackage name prefix
msysbothnone, e.g. rsync
ucrt64x64mingw-w64-ucrt-x86_64-
clangarm64ARM64mingw-w64-clang-aarch64-

paku picks the environment from the real CPU, even when Git Bash itself runs under x64 emulation.

msys programs like rsync use the msys-2.0.dll runtime from Git for Windows, so run them from Git Bash.

Packages bundled with Git

Packages bundled with Git for Windows (listed in /etc/package-versions.txt) count as installed, so dependencies like libiconv or libopenssl are not downloaded again. They are not listed by -Q. paku never replaces Git’s own runtime (msys2-runtime, bash, filesystem, pacman, mintty) and refuses them as explicit targets.