pkg
pkg [-h] [-i|-u] <package> [package...]Installs or removes packages using the detected system package manager. Supports: paru, yay, pacman, apt, dnf, zypper, yum, brew, pkg.
(no flag) Auto mode: installs missing packages, removes installed ones -i/--install Force install -u/--uninstall Force uninstallpkg firefox # auto: install if missing, remove if presentpkg -i ripgrep fd # force installpkg -u cowsay # force uninstallThe package-installed check uses the correct query for each PM: pacman/paru/yay pacman -Qi apt dpkg -s dnf/zypper/yum rpm -q brew brew list pkg pkg info